version 1.11, 2002/03/30 00:43:24
|
version 1.12, 2002/04/06 02:52:23
|
|
|
Uint32 queueId, | Uint32 queueId, |
const String& messageId, | const String& messageId, |
const String& iMethodName, | const String& iMethodName, |
CIMStatusCode code, |
const CIMException& cimException) |
const String& description) |
|
{ | { |
PEG_METHOD_ENTER(TRC_SERVER, | PEG_METHOD_ENTER(TRC_SERVER, |
"CIMOperationRequestAuthorizer::sendIMethodError"); | "CIMOperationRequestAuthorizer::sendIMethodError"); |
|
|
message = XmlWriter::formatSimpleIMethodErrorRspMessage( | message = XmlWriter::formatSimpleIMethodErrorRspMessage( |
iMethodName, | iMethodName, |
messageId, | messageId, |
code, |
cimException); |
description); |
|
| |
sendResponse(queueId, message); | sendResponse(queueId, message); |
| |
|
|
| |
Uint32 queueId = qis.top(); | Uint32 queueId = qis.top(); |
| |
|
// |
|
// If CIMOM is shutting down, return "Service Unavailable" response |
|
// |
|
if (_serverTerminating) |
|
{ |
|
Array<Sint8> message; |
|
message = XmlWriter::formatHttpErrorRspMessage( |
|
HTTP_STATUS_SERVICEUNAVAILABLE, |
|
String::EMPTY, |
|
"CIM Server is shutting down. " |
|
"Request cannot be processed."); |
|
|
|
sendResponse(queueId, message); |
|
PEG_METHOD_EXIT(); |
|
return; |
|
} |
|
|
String userName = String::EMPTY; | String userName = String::EMPTY; |
String authType = String::EMPTY; | String authType = String::EMPTY; |
String nameSpace = String::EMPTY; | String nameSpace = String::EMPTY; |
|
|
} | } |
| |
// | // |
// if CIMOM is shutting down, return error response |
|
// |
|
// ATTN: Need to define a new CIM Error. |
|
// |
|
if (_serverTerminating) |
|
{ |
|
String description = "CIMServer is shutting down. "; |
|
description.append("Request cannot be processed: "); |
|
|
|
sendIMethodError( |
|
queueId, |
|
((CIMRequestMessage*)request)->messageId, |
|
cimMethodName, |
|
CIM_ERR_FAILED, |
|
description); |
|
|
|
PEG_METHOD_EXIT(); |
|
|
|
return; |
|
} |
|
|
|
// |
|
// Do Authorization verification | // Do Authorization verification |
// | // |
UserManager* userManager = UserManager::getInstance(); | UserManager* userManager = UserManager::getInstance(); |
|
|
queueId, | queueId, |
((CIMRequestMessage*)request)->messageId, | ((CIMRequestMessage*)request)->messageId, |
cimMethodName, | cimMethodName, |
CIM_ERR_FAILED, |
PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, description)); |
description); |
|
| |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
| |
|
|
queueId, | queueId, |
((CIMRequestMessage*)request)->messageId, | ((CIMRequestMessage*)request)->messageId, |
cimMethodName, | cimMethodName, |
CIM_ERR_ACCESS_DENIED, |
PEGASUS_CIM_EXCEPTION(CIM_ERR_ACCESS_DENIED, description)); |
description); |
|
| |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
| |