version 1.3, 2002/02/25 23:57:07
|
version 1.5, 2002/04/12 00:37:19
|
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com) |
// Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com) |
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
String& methodName, | String& methodName, |
String& requestUri, | String& requestUri, |
String& httpVersion); | String& httpVersion); |
|
|
|
static Boolean parseStatusLine( |
|
const String& statusLine, |
|
String& httpVersion, |
|
Uint32& statusCode, |
|
String& reasonPhrase); |
|
}; |
|
|
|
/** This message is sent from the response decoder back to the client to turn |
|
it into an Exception. |
|
*/ |
|
class PEGASUS_COMMON_LINKAGE HTTPErrorMessage : public Message |
|
{ |
|
public: |
|
typedef Message Base; |
|
|
|
HTTPErrorMessage( |
|
Uint32 httpStatusCode_, |
|
const String& cimError_, |
|
const String& pegasusError_) |
|
: Message(HTTP_ERROR_MESSAGE), |
|
httpStatusCode(httpStatusCode_), |
|
cimError(cimError_), |
|
pegasusError(pegasusError_) |
|
{ } |
|
|
|
|
|
HTTPErrorMessage(HTTPErrorMessage & msg) |
|
: Base(msg) |
|
{ |
|
if( this != &msg) |
|
{ |
|
httpStatusCode = msg.httpStatusCode; |
|
const_cast<String &>(cimError) = msg.cimError; |
|
const_cast<String &>(pegasusError) = msg.pegasusError; |
|
} |
|
} |
|
|
|
virtual ~HTTPErrorMessage() |
|
{ |
|
} |
|
|
|
Uint32 httpStatusCode; |
|
const String cimError; |
|
const String pegasusError; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |