Class CIMClientFactory
java.lang.Object
org.sblim.wbem.client.CIMClientFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CIMOMHandle
getClient
(CIMNameSpace pNameSpace, Principal pPrincipal, Object pCredential, String pProtocol) Deprecated.Use getClient(CIMNameSpace, Principal, Object, String, SessionProperties) insteadstatic CIMOMHandle
getClient
(CIMNameSpace pNameSpace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties) Constructs aCIMOMHandle
with connection information to a target CIM server and a default namespace, using the specified principal, credential, protocol and session properties.
-
Constructor Details
-
CIMClientFactory
public CIMClientFactory()
-
-
Method Details
-
getClient
public static CIMOMHandle getClient(CIMNameSpace pNameSpace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties) throws CIMException Constructs aCIMOMHandle
with connection information to a target CIM server and a default namespace, using the specified principal, credential, protocol and session properties.- Parameters:
pNameSpace
- Namespace identifying target CIM server and default CIM namespace name. Must not be null. The host and port attributes identify the target CIM server to connect to. Must be valid. The namespace attribute identifies the default namespace name to be used if object paths in subsequent method invocations do not provide a namespace name. Must be valid.pPrincipal
- Principal (e.g. userid) used to log on to the CIM Server. Must not be null.pCredential
- Credential (e.g. password) used to log on to the CIM Server. Must not be null.pProtocol
- Identifier for the CIM client protocol to be used. Must be valid. Valid identifiers are the following constants:CIM_XML
- CIM Operations over HTTP
CIMOMHandle
.pProperties
- The session properties to be used. Might be either the global properties or a connection specific properties instance. Ifnull
the global properties are used.- Returns:
- The CIMOMHandle
- Throws:
CIMException
- with one of these CIM status codes:- See Also:
-
getClient
public static CIMOMHandle getClient(CIMNameSpace pNameSpace, Principal pPrincipal, Object pCredential, String pProtocol) throws CIMException Deprecated.Use getClient(CIMNameSpace, Principal, Object, String, SessionProperties) insteadConstructs aCIMOMHandle
with connection information to a target CIM server and a default namespace, using the specified principal, credential and protocol. The globalSessionPropeties
are applied.- Parameters:
pNameSpace
- Namespace identifying target CIM server and default CIM namespace name. Must not be null. The host and port attributes identify the target CIM server to connect to. Must be valid. The namespace attribute identifies the default namespace name to be used if object paths in subsequent method invocations do not provide a namespace name. Must be valid.pPrincipal
- Principal (e.g. userid) used to log on to the CIM Server. Must not be null.pCredential
- Credential (e.g. password) used to log on to the CIM Server. Must not be null.pProtocol
- Identifier for the CIM client protocol to be used. Must be valid. Valid identifiers are the following constants:CIM_XML
- CIM Operations over HTTP
CIMOMHandle
.- Returns:
- The CIMOMHandle
- Throws:
CIMException
- with one of these CIM status codes:- See Also:
-