version 1.11, 2004/08/25 11:15:54
|
version 1.12, 2004/09/09 13:09:42
|
|
|
// Modified By: Dan Gorey (djgorey@us.ibm.com) | // Modified By: Dan Gorey (djgorey@us.ibm.com) |
// Marek Szermutzky (MSzermutzky@de.ibm.com) for PEP#139 Stage1 | // Marek Szermutzky (MSzermutzky@de.ibm.com) for PEP#139 Stage1 |
// Robert Kieninger, IBM (kieningr@de.ibm.com) for Bug#667 | // Robert Kieninger, IBM (kieningr@de.ibm.com) for Bug#667 |
|
// Amit K Arora, IBM (amita@in.ibm.com) for Bug#2040 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include <Pegasus/Common/HTTPConnector.h> | #include <Pegasus/Common/HTTPConnector.h> |
#include <Pegasus/Common/CIMMessage.h> | #include <Pegasus/Common/CIMMessage.h> |
#include <Pegasus/Common/HTTPConnection.h> | #include <Pegasus/Common/HTTPConnection.h> |
#include <Pegasus/Common/Destroyer.h> |
|
#include <Pegasus/Common/XmlWriter.h> | #include <Pegasus/Common/XmlWriter.h> |
#include <Pegasus/Common/TimeValue.h> | #include <Pegasus/Common/TimeValue.h> |
#include <Pegasus/Common/AutoPtr.h> | #include <Pegasus/Common/AutoPtr.h> |
|
|
| |
private: | private: |
| |
void _connect(); |
void _connect(AutoPtr<SSLContext>& connectSSLContext); |
| |
void _disconnect(); | void _disconnect(); |
| |
void _reconnect(); | void _reconnect(); |
| |
Message* _doRequest( | Message* _doRequest( |
CIMRequestMessage * request, |
AutoPtr<CIMRequestMessage>& request, |
const Uint32 expectedResponseMessageType); | const Uint32 expectedResponseMessageType); |
| |
String _getLocalHostName(); | String _getLocalHostName(); |
#ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT | #ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT |
Monitor* _monitor; |
AutoPtr<Monitor> _monitor; |
HTTPConnector* _httpConnector; |
AutoPtr<HTTPConnector> _httpConnector; |
HTTPConnection* _httpConnection; |
AutoPtr<HTTPConnection> _httpConnection; |
#else | #else |
monitor_2* _monitor; |
AutoPtr<monitor_2> _monitor; |
HTTPConnector2* _httpConnector; |
AutoPtr<HTTPConnector2> _httpConnector; |
HTTPConnection2* _httpConnection; |
AutoPtr<HTTPConnection2> _httpConnection; |
#endif | #endif |
| |
| |
Uint32 _timeoutMilliseconds; | Uint32 _timeoutMilliseconds; |
Boolean _connected; | Boolean _connected; |
CIMOperationResponseDecoder* _responseDecoder; |
AutoPtr<CIMOperationResponseDecoder> _responseDecoder; |
CIMOperationRequestEncoder* _requestEncoder; |
AutoPtr<CIMOperationRequestEncoder> _requestEncoder; |
ClientAuthenticator _authenticator; | ClientAuthenticator _authenticator; |
String _connectHost; | String _connectHost; |
Uint32 _connectPortNumber; | Uint32 _connectPortNumber; |