3 kumpf 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
|
5 kumpf 1.1 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to
8 // deal in the Software without restriction, including without limitation the
9 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 // sell copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
|
13 kumpf 1.1 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
14 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 //
22 //==============================================================================
23 //
24 // Author: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
30 #ifndef Pegasus_ProviderMessageFacade_h
31 #define Pegasus_ProviderMessageFacade_h
32
33 #include <Pegasus/Common/Config.h>
34 kumpf 1.1
35 #include <Pegasus/ProviderManager/ProviderFacade.h>
36 #include <Pegasus/Common/CIMMessage.h>
37
38 PEGASUS_NAMESPACE_BEGIN
39
40 /**
41 The ProviderMessageFacade class wraps a ProviderFacade instance so that
42 it accepts CIMOperationRequestMessages in addition to the direct
43 provider API method calls.
44 */
45 class PEGASUS_SERVER_LINKAGE ProviderMessageFacade : public ProviderFacade
46 {
47 public:
48
49 ProviderMessageFacade(CIMBaseProvider * provider);
50 virtual ~ProviderMessageFacade(void);
51
52 Message * handleRequestMessage(Message * message) throw();
53
54 protected:
55 kumpf 1.1
56 Message * _handleGetInstanceRequest(Message * message) throw();
57 Message * _handleEnumerateInstancesRequest(Message * message) throw();
58 Message * _handleEnumerateInstanceNamesRequest(Message * message) throw();
59 Message * _handleCreateInstanceRequest(Message * message) throw();
60 Message * _handleModifyInstanceRequest(Message * message) throw();
61 Message * _handleDeleteInstanceRequest(Message * message) throw();
62 Message * _handleExecuteQueryRequest(Message * message) throw();
63 Message * _handleAssociatorsRequest(Message * message) throw();
64 Message * _handleAssociatorNamesRequest(Message * message) throw();
65 Message * _handleReferencesRequest(Message * message) throw();
66 Message * _handleReferenceNamesRequest(Message * message) throw();
67 Message * _handleGetPropertyRequest(Message * message) throw();
68 Message * _handleSetPropertyRequest(Message * message) throw();
69 Message * _handleInvokeMethodRequest(Message * message) throw();
70 };
71
72 PEGASUS_NAMESPACE_END
73
74 #endif
|