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.21 class PEGASUS_EXPORT_CLIENT_LINKAGE CIMExportResponseDecoder :
56 public MessageQueue
|
57 mike 1.2 {
|
58 david.dillard 1.17
|
59 mday 1.4 public:
|
60 david.dillard 1.17
|
61 carolann.graves 1.20 /** Constructor.
|
62 david.dillard 1.17 @param outputQueue queue to receive decoded HTTP messages.
|
63 carolann.graves 1.20 @param encoderQueue queue to receive CIM Export Response messages.
|
64 david.dillard 1.17 @param authenticator client authenticator.
|
65 mday 1.4 */
66 CIMExportResponseDecoder(
|
67 david.dillard 1.17 MessageQueue* outputQueue,
68 MessageQueue* encoderQueue,
69 ClientAuthenticator* authenticator);
|
70 mike 1.2
|
71 mday 1.4 /** Destructor. */
72 ~CIMExportResponseDecoder();
|
73 mike 1.2
|
74 kumpf 1.11 void setEncoderQueue(MessageQueue* encoderQueue);
|
75 mike 1.2
|
76 mday 1.4 /** This method is called when a message is enqueued on this queue. */
77 virtual void handleEnqueue();
|
78 mike 1.2
|
79 mday 1.4 private:
|
80 mike 1.2
|
81 kumpf 1.21 void _handleHTTPMessage(HTTPMessage* message);
|
82 mike 1.2
|
83 kumpf 1.21 AutoPtr<MessageQueue> _outputQueue;
84 AutoPtr<MessageQueue> _encoderQueue;
85 AutoPtr<ClientAuthenticator> _authenticator;
|
86 mike 1.2 };
87
88 PEGASUS_NAMESPACE_END
89
90 #endif /* Pegasus_CIMExportResponseDecoder_h */
|