|
Get a ClientCIMOMHandleRef from pool and configure it according to the given parameters.
- Parameters:
-
| remoteUrl | Base url for the server. This is an out parameter which may be modified if useConnectionCredentials == true. |
| useConnectionCredentials | If true, then modify the url to include the principal and credentials stored in env->getOperationContext(). |
| env | The provider environment used to get a logger and the OperationContext. |
| pool | The new connection will be retrieved from pool. |
| alwaysSendCredentials | If true, assumeBasicAuth() will be called on the HTTPClient of the new connection. If the server supports Basic HTTP authentication, this is helpful to avoid an extra round trip for the client to discover what the server supports. |
Definition at line 61 of file OW_RemoteProviderUtils.cpp.
References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::IntrusiveReference< T >::cast_to(), COMPONENT_NAME, OW_NAMESPACE::URL::credential, env, OW_NAMESPACE::CIMException::FAILED, hdl, OW_ASSERT, OW_LOG_ERROR, OW_THROWCIMMSG_SUBEX, OW_NAMESPACE::URL::principal, OW_NAMESPACE::URL::toString(), and OW_NAMESPACE::OperationContext::USER_NAME.
Referenced by OW_NAMESPACE::RemoteAssociatorProvider::associatorNames(), OW_NAMESPACE::RemoteAssociatorProvider::associators(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::createInstance(), OW_NAMESPACE::RemoteInstanceProvider::createInstance(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::deleteInstance(), OW_NAMESPACE::RemoteInstanceProvider::deleteInstance(), OW_NAMESPACE::RemoteInstanceProvider::enumInstanceNames(), OW_NAMESPACE::RemoteInstanceProvider::enumInstances(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::filterInstances(), OW_NAMESPACE::RemoteInstanceProvider::getInstance(), OW_NAMESPACE::RemoteMethodProvider::invokeMethod(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::modifyInstance(), OW_NAMESPACE::RemoteInstanceProvider::modifyInstance(), OW_NAMESPACE::RemoteAssociatorProvider::referenceNames(), and OW_NAMESPACE::RemoteAssociatorProvider::references(). |