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

 1 martin 1.19 //%LICENSE////////////////////////////////////////////////////////////////
 2 martin 1.20 //
 3 martin 1.19 // Licensed to The Open Group (TOG) under one or more contributor license
 4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
 5             // this work for additional information regarding copyright ownership.
 6             // Each contributor licenses this file to you under the OpenPegasus Open
 7             // Source License; you may not use this file except in compliance with the
 8             // License.
 9 martin 1.20 //
10 martin 1.19 // Permission is hereby granted, free of charge, to any person obtaining a
11             // copy of this software and associated documentation files (the "Software"),
12             // to deal in the Software without restriction, including without limitation
13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14             // and/or sell copies of the Software, and to permit persons to whom the
15             // Software is furnished to do so, subject to the following conditions:
16 martin 1.20 //
17 martin 1.19 // The above copyright notice and this permission notice shall be included
18             // in all copies or substantial portions of the Software.
19 martin 1.20 //
20 martin 1.19 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 martin 1.20 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 martin 1.19 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 martin 1.20 //
28 martin 1.19 //////////////////////////////////////////////////////////////////////////
29 mike   1.2  //
30             //%/////////////////////////////////////////////////////////////////////////////
31             
32             #ifndef Pegasus_CIMExportRequestEncoder_h
33             #define Pegasus_CIMExportRequestEncoder_h
34             
35             #include <Pegasus/Common/Config.h>
36 kumpf  1.10 #include <Pegasus/Common/MessageQueue.h>
37 mike   1.2  #include <Pegasus/Common/CIMMessage.h>
38 a.arora 1.12 #include <Pegasus/Common/AutoPtr.h>
39 mike    1.2  #include <Pegasus/Client/ClientAuthenticator.h>
40              #include <Pegasus/ExportClient/Linkage.h>
41              
42              PEGASUS_NAMESPACE_BEGIN
43              
44              /** This class receives CIM Operation Request messages on its input queue
45                  and encodes them into HTTP messages which it places on its output queue.
46              */
47 david.dillard 1.16 class PEGASUS_EXPORT_CLIENT_LINKAGE CIMExportRequestEncoder
48 kumpf         1.10    : public MessageQueue
49 mike          1.2  {
50 mday          1.4     public:
51                          /** Constuctor.
52 david.dillard 1.16           @param outputQueue queue to receive encoded HTTP messages.
53 kumpf         1.13           @param hostName Name of the target host for the encoded requests.
54                                              I.e., the value of the HTTP Host header.
55 david.dillard 1.16           @param authenticator client authenticator.
56 mday          1.4        */
57                          CIMExportRequestEncoder(
58 kumpf         1.13          MessageQueue* outputQueue,
59                             const String& hostName,
60                             ClientAuthenticator* authenticator);
61 mday          1.4  
62                          /** Destructor. */
63                          ~CIMExportRequestEncoder();
64                    
65                          /** This method is called when a message is enqueued on this queue. */
66                          virtual void handleEnqueue();
67                    
68                       private:
69                    
70                          void _encodeExportIndicationRequest(
71 david.dillard 1.16             CIMExportIndicationRequestMessage* message);
72 mday          1.4  
73                          MessageQueue* _outputQueue;
74 kumpf         1.9        CString _hostName;
75 a.arora       1.12       AutoPtr<ClientAuthenticator> _authenticator; //PEP101
76 mike          1.2  };
77                    
78                    PEGASUS_NAMESPACE_END
79                    
80                    #endif /* Pegasus_CIMExportRequestEncoder_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2