1 karl 1.19 //%2006////////////////////////////////////////////////////////////////////////
|
2 mike 1.2 //
|
3 karl 1.15 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.12 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.15 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.16 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.19 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 mike 1.2 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
15 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
|
20 karl 1.19 //
|
21 mike 1.2 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
31 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 #ifndef Pegasus_CIMExportResponseDecoder_h
35 #define Pegasus_CIMExportResponseDecoder_h
36
37 #include <Pegasus/Common/Config.h>
|
38 kumpf 1.11 #include <Pegasus/Common/MessageQueue.h>
|
39 mike 1.2 #include <Pegasus/Common/HTTPMessage.h>
|
40 kumpf 1.11 #include <Pegasus/Common/CIMMessage.h>
|
41 a.arora 1.13 #include <Pegasus/Common/AutoPtr.h>
|
42 mike 1.2 #include <Pegasus/Client/ClientAuthenticator.h>
|
43 kumpf 1.11 #include <Pegasus/Client/CIMClientException.h>
|
44 carolann.graves 1.20 #include <Pegasus/ExportClient/HTTPExportResponseDecoder.h>
|
45 mike 1.2 #include <Pegasus/ExportClient/Linkage.h>
46
47 PEGASUS_NAMESPACE_BEGIN
48
49 class XmlParser;
50
|
51 kumpf 1.11 /**
|
52 carolann.graves 1.20 The CIMExportResponseDecoder class receives HTTP messages and decodes them
53 into CIM Export Response messages which it places on its output queue.
|
54 mike 1.2 */
|
55 kumpf 1.11 class PEGASUS_EXPORT_CLIENT_LINKAGE CIMExportResponseDecoder : public MessageQueue
|
56 mike 1.2 {
|
57 david.dillard 1.17
|
58 mday 1.4 public:
|
59 david.dillard 1.17
|
60 carolann.graves 1.20 /** Constructor.
|
61 david.dillard 1.17 @param outputQueue queue to receive decoded HTTP messages.
|
62 carolann.graves 1.20 @param encoderQueue queue to receive CIM Export Response messages.
|
63 david.dillard 1.17 @param authenticator client authenticator.
|
64 mday 1.4 */
65 CIMExportResponseDecoder(
|
66 david.dillard 1.17 MessageQueue* outputQueue,
67 MessageQueue* encoderQueue,
68 ClientAuthenticator* authenticator);
|
69 mike 1.2
|
70 mday 1.4 /** Destructor. */
71 ~CIMExportResponseDecoder();
|
72 mike 1.2
|
73 kumpf 1.11 void setEncoderQueue(MessageQueue* encoderQueue);
|
74 mike 1.2
|
75 mday 1.4 /** This method is called when a message is enqueued on this queue. */
76 virtual void handleEnqueue();
|
77 mike 1.2
|
78 mday 1.4 private:
|
79 mike 1.2
|
80 mday 1.4 void _handleHTTPMessage(
|
81 david.dillard 1.17 HTTPMessage* message);
|
82 mike 1.2
|
83 a.arora 1.13 AutoPtr<MessageQueue> _outputQueue; //PEP101
84 AutoPtr<MessageQueue> _encoderQueue; //PEP101
85 AutoPtr<ClientAuthenticator> _authenticator; //PEP101
|
86 mike 1.2 };
87
88 PEGASUS_NAMESPACE_END
89
90 #endif /* Pegasus_CIMExportResponseDecoder_h */
|