version 1.25.4.6, 2014/03/12 20:21:37
|
version 1.26, 2011/05/27 08:52:24
|
|
|
{ | { |
_provider->initialize(cimom); | _provider->initialize(cimom); |
} | } |
catch (CIMException& e) |
|
{ |
|
PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL1, |
|
"Caught CIMexception from provider %s initialize() method." |
|
" Code: %u Msg: %s", |
|
(const char*)_fullyQualifiedProviderName.getCString(), |
|
e.getCode(), cimStatusCodeToString(e.getCode()) )); |
|
throw; |
|
} |
|
catch (Exception& e) |
|
{ |
|
|
|
PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL1, |
|
"Caught Exception from provider %s initialize() method. %s", |
|
(const char*)_fullyQualifiedProviderName.getCString(), |
|
(const char*) e.getMessage().getCString() )); |
|
throw; |
|
} |
|
catch (...) | catch (...) |
{ | { |
PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL1, | PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL1, |
|
|
break; | break; |
| |
default: | default: |
PEGASUS_UNREACHABLE(PEGASUS_ASSERT(0);) |
PEGASUS_ASSERT(0); |
break; | break; |
} | } |
} | } |
|
|
providerContext.insert(context.get(AcceptLanguageListContainer::NAME)); | providerContext.insert(context.get(AcceptLanguageListContainer::NAME)); |
providerContext.insert(context.get(ContentLanguageListContainer::NAME)); | providerContext.insert(context.get(ContentLanguageListContainer::NAME)); |
| |
if (context.contains(UserRoleContainer::NAME)) |
|
{ |
|
providerContext.insert(context.get(UserRoleContainer::NAME)); |
|
} |
|
|
|
return providerContext; | return providerContext; |
} | } |
| |
|
|
"Object path: %s", | "Object path: %s", |
(const char*) objectPath.toString().getCString())); | (const char*) objectPath.toString().getCString())); |
| |
// KS_TODO Confirm that the following is cruft and not needed. |
CIMObjectPath resultPath( |
// CIMObjectPath resultPath( |
System::getHostName(), |
// System::getHostName(), |
request->nameSpace, |
// request->nameSpace, |
request->resultClass.getString()); |
// request->resultClass.getString()); |
|
| |
OperationContext providerContext( | OperationContext providerContext( |
_createProviderOperationContext(request->operationContext)); | _createProviderOperationContext(request->operationContext)); |