(file) Return to CIMExportResponseDecoder.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ExportClient

  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            // Author: Mike Brasher (mbrasher@bmc.com)
 33            //
 34            // Modified By: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
 35            //              Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)
 36 kumpf 1.11 //              Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
 37 a.arora 1.13 //              Amit K Arora, IBM (amita@in.ibm.com) for PEP#101
 38 kumpf   1.14 //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 39 david.dillard 1.17 //              David Dillard, VERITAS Software Corp.
 40                    //                  (david.dillard@veritas.com)
 41 j.alex        1.18 //              John Alex, IBM (johnalex@us.ibm.com) - Bug#2290
 42 mike          1.2  //
 43                    //%/////////////////////////////////////////////////////////////////////////////
 44                    
 45                    #ifndef Pegasus_CIMExportResponseDecoder_h
 46                    #define Pegasus_CIMExportResponseDecoder_h
 47                    
 48                    #include <Pegasus/Common/Config.h>
 49 kumpf         1.11 #include <Pegasus/Common/MessageQueue.h>
 50 mike          1.2  #include <Pegasus/Common/HTTPMessage.h>
 51 kumpf         1.11 #include <Pegasus/Common/CIMMessage.h>
 52 a.arora       1.13 #include <Pegasus/Common/AutoPtr.h>
 53 mike          1.2  #include <Pegasus/Client/ClientAuthenticator.h>
 54 kumpf         1.11 #include <Pegasus/Client/CIMClientException.h>
 55 mike          1.2  #include <Pegasus/ExportClient/Linkage.h>
 56                    
 57                    PEGASUS_NAMESPACE_BEGIN
 58                    
 59                    class XmlParser;
 60                    
 61 kumpf         1.11 /**
 62                        This message is sent from the response decoder to the CIMClient, indicating
 63                        an error in issuing a CIM request.
 64                    */
 65                    class ClientExceptionMessage : public Message
 66                    {
 67                    public:
 68                        ClientExceptionMessage(Exception* clientException_)
 69                            :
 70                            Message(CLIENT_EXCEPTION_MESSAGE),
 71                            clientException(clientException_)
 72                        {
 73                        }
 74                    
 75                        Exception* clientException;
 76                    };
 77                    
 78 david.dillard 1.17 /** This class receives HTTP messages and decodes them into CIM Operation
 79 mike          1.2      Responses messages which it places on its output queue.
 80                    */
 81 kumpf         1.11 class PEGASUS_EXPORT_CLIENT_LINKAGE CIMExportResponseDecoder :  public MessageQueue
 82 mike          1.2  {
 83 david.dillard 1.17 
 84 mday          1.4     public:
 85 david.dillard 1.17 
 86 mday          1.4        /** Constuctor.
 87 david.dillard 1.17           @param outputQueue queue to receive decoded HTTP messages.
 88                              @param encoderQueue queue to receive CIM Operation Response messages.
 89                              @param authenticator client authenticator.
 90 mday          1.4        */
 91                          CIMExportResponseDecoder(
 92 david.dillard 1.17          MessageQueue* outputQueue,
 93                             MessageQueue* encoderQueue,
 94                             ClientAuthenticator* authenticator);
 95 mike          1.2  
 96 mday          1.4        /** Destructor. */
 97                          ~CIMExportResponseDecoder();
 98 mike          1.2  
 99 kumpf         1.11       void setEncoderQueue(MessageQueue* encoderQueue);
100 mike          1.2  
101 mday          1.4        /** This method is called when a message is enqueued on this queue. */
102                          virtual void handleEnqueue();
103 mike          1.2  
104 mday          1.4     private:
105 mike          1.2  
106 mday          1.4        void _handleHTTPMessage(
107 david.dillard 1.17          HTTPMessage* message);
108 mike          1.2  
109 mday          1.4        void _handleMethodResponse(
110 j.alex        1.18          char* content,
111                             Boolean cimReconnect);
112 mike          1.2  
113 mday          1.4        CIMExportIndicationResponseMessage* _decodeExportIndicationResponse(
114 kumpf         1.14          XmlParser& parser,
115                             const String& messageId,
116                             Boolean isEmptyMethodresponseTag);
117 mike          1.2  
118 a.arora       1.13       AutoPtr<MessageQueue>        _outputQueue; //PEP101
119                          AutoPtr<MessageQueue>        _encoderQueue; //PEP101
120                          AutoPtr<ClientAuthenticator> _authenticator; //PEP101
121 mike          1.2  };
122                    
123                    PEGASUS_NAMESPACE_END
124                    
125                    #endif /* Pegasus_CIMExportResponseDecoder_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2