Class CIMClientXML
java.lang.Object
org.sblim.wbem.client.CIMClientXML
- All Implemented Interfaces:
CIMOMHandle
-
Constructor Summary
ConstructorsConstructorDescriptionCIMClientXML
(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol) CIMClientXML
(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCIMListener
(CIMListener pListener) void
addCIMListener
(CIMListener pListener, String pId) associatorNames
(CIMObjectPath pPath) associatorNames
(CIMObjectPath pPath, String pAssociationClass, String pResultClass, String pRole, String pResultRole) associators
(CIMObjectPath pPath, String pAssociationClass, String pResultClass, String pRole, String pResultRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) void
close()
void
close
(boolean pKeepEnumerations) void
createClass
(CIMObjectPath pPath, CIMClass pClass) createInstance
(CIMObjectPath pObjectName, CIMInstance pInstance) void
createNameSpace
(CIMNameSpace pNamespace) void
createQualifierType
(CIMObjectPath pPath, CIMQualifierType pQualifierType) void
deleteClass
(CIMObjectPath pPath) void
deleteInstance
(CIMObjectPath pPath) void
deleteNameSpace
(CIMNameSpace pNamespace) void
deleteQualifierType
(CIMObjectPath pPath) enumerateClasses
(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin) enumerateClassNames
(CIMObjectPath pObjectName, boolean pDeep) enumerateInstances
(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) enumNameSpace
(CIMObjectPath pPath, boolean pDeep) enumQualifierTypes
(CIMObjectPath pPath) execQuery
(CIMObjectPath pPath) execQuery
(CIMObjectPath pPath, String pQuery, String pQueryLanguage) protected static Object
fixResult
(CIMObjectPath pRequest, Object pObject, CIMNameSpace pNameSpace) protected static Vector
fixResultSet
(CIMObjectPath pRequest, Vector pVector, CIMNameSpace pNameSpace) protected String
getCharacterSet
(HttpHeader pHeader) protected void
getClass
(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) getDocument
(InputStreamReader pStream) getIndicationHandler
(CIMListener pListener) getIndicationListener
(CIMListener pListener) getInstance
(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) getMultiResponse
(InputStreamReader pStream) getProperty
(CIMObjectPath pPath, String pPropertyName) getQualifierType
(CIMObjectPath pPath) getQualifierType
(CIMObjectPath pPath, String pQualifierType) void
init
(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties) invokeMethod
(CIMObjectPath pObjectName, String pMethodName, Vector pInputArguments, Vector pOutputArguments) newConnection
(String pCimMethod, HttpHeader pHeader) protected HttpHeader
parseHeaders
(URLConnection pConnection) performBatchOperations
(BatchHandle pBatchHandle) void
preCheck
(CIMNameSpace pNamespace) void
preCheck
(CIMObjectPath pPath) referenceNames
(CIMObjectPath pPath) referenceNames
(CIMObjectPath pPath, String pResultClass, String pRole) references
(CIMObjectPath pPath) references
(CIMObjectPath pPath, String pResultClass, String pRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) void
removeCIMListener
(CIMListener pListener) void
setClass
(CIMObjectPath pPath, CIMClass pClass) void
setInstance
(CIMObjectPath pPath, CIMInstance pInstance, boolean pIncludeQualifiers, String[] pPropertyList) void
void
setProperty
(CIMObjectPath pPath, String pPropertyName) void
setProperty
(CIMObjectPath pPath, String pPropertyName, CIMValue pValue) void
setQualifierType
(CIMObjectPath pPath, CIMQualifierType pQualifierType) void
setSessionProperties
(SessionProperties pProperties) transmitRequest
(String pCimMethod, HttpHeader pHeader, Document pDocument) void
useHttp11
(boolean pValue) void
useMPost
(boolean pValue)
-
Constructor Details
-
CIMClientXML
public CIMClientXML(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol) throws CIMException - Throws:
CIMException
-
CIMClientXML
public CIMClientXML(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties) throws CIMException - Throws:
CIMException
-
-
Method Details
-
init
public void init(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties) throws CIMException - Throws:
CIMException
-
getCIMOMCapabilities
protected void getCIMOMCapabilities() -
setLocale
- Specified by:
setLocale
in interfaceCIMOMHandle
-
getLocale
- Specified by:
getLocale
in interfaceCIMOMHandle
-
useHttp11
public void useHttp11(boolean pValue) - Specified by:
useHttp11
in interfaceCIMOMHandle
-
useMPost
public void useMPost(boolean pValue) - Specified by:
useMPost
in interfaceCIMOMHandle
-
preCheck
- Throws:
CIMException
-
preCheck
- Throws:
CIMException
-
getNameSpace
- Specified by:
getNameSpace
in interfaceCIMOMHandle
-
associatorNames
- Specified by:
associatorNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
associatorNames
public Enumeration associatorNames(CIMObjectPath pPath, String pAssociationClass, String pResultClass, String pRole, String pResultRole) throws CIMException - Specified by:
associatorNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
associators
public Enumeration associators(CIMObjectPath pPath, String pAssociationClass, String pResultClass, String pRole, String pResultRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) throws CIMException - Specified by:
associators
in interfaceCIMOMHandle
- Throws:
CIMException
-
deleteInstance
- Specified by:
deleteInstance
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateInstanceNames
- Specified by:
enumerateInstanceNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateInstances
public Enumeration enumerateInstances(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) throws CIMException - Specified by:
enumerateInstances
in interfaceCIMOMHandle
- Throws:
CIMException
-
getInstance
public CIMInstance getInstance(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) throws CIMException - Specified by:
getInstance
in interfaceCIMOMHandle
- Throws:
CIMException
-
getClass
public CIMClass getClass(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) throws CIMException - Specified by:
getClass
in interfaceCIMOMHandle
- Throws:
CIMException
-
createInstance
public CIMObjectPath createInstance(CIMObjectPath pObjectName, CIMInstance pInstance) throws CIMException - Specified by:
createInstance
in interfaceCIMOMHandle
- Throws:
CIMException
-
invokeMethod
public CIMValue invokeMethod(CIMObjectPath pObjectName, String pMethodName, Vector pInputArguments, Vector pOutputArguments) throws CIMException - Specified by:
invokeMethod
in interfaceCIMOMHandle
- Throws:
CIMException
-
createClass
- Specified by:
createClass
in interfaceCIMOMHandle
- Throws:
CIMException
-
createQualifierType
public void createQualifierType(CIMObjectPath pPath, CIMQualifierType pQualifierType) throws CIMException - Specified by:
createQualifierType
in interfaceCIMOMHandle
- Throws:
CIMException
-
deleteClass
- Specified by:
deleteClass
in interfaceCIMOMHandle
- Throws:
CIMException
-
deleteQualifierType
- Specified by:
deleteQualifierType
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateClasses
public Enumeration enumerateClasses(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin) throws CIMException - Specified by:
enumerateClasses
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateClassNames
public Enumeration enumerateClassNames(CIMObjectPath pObjectName, boolean pDeep) throws CIMException - Specified by:
enumerateClassNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
execQuery
- Throws:
CIMException
-
getProperty
- Specified by:
getProperty
in interfaceCIMOMHandle
- Throws:
CIMException
-
referenceNames
- Specified by:
referenceNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
referenceNames
public Enumeration referenceNames(CIMObjectPath pPath, String pResultClass, String pRole) throws CIMException - Specified by:
referenceNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
references
- Specified by:
references
in interfaceCIMOMHandle
- Throws:
CIMException
-
references
public Enumeration references(CIMObjectPath pPath, String pResultClass, String pRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, String[] pPropertyList) throws CIMException - Specified by:
references
in interfaceCIMOMHandle
- Throws:
CIMException
-
setClass
- Specified by:
setClass
in interfaceCIMOMHandle
- Throws:
CIMException
-
setInstance
public void setInstance(CIMObjectPath pPath, CIMInstance pInstance, boolean pIncludeQualifiers, String[] pPropertyList) throws CIMException - Specified by:
setInstance
in interfaceCIMOMHandle
- Throws:
CIMException
-
setProperty
- Specified by:
setProperty
in interfaceCIMOMHandle
- Throws:
CIMException
-
setProperty
public void setProperty(CIMObjectPath pPath, String pPropertyName, CIMValue pValue) throws CIMException - Specified by:
setProperty
in interfaceCIMOMHandle
- Throws:
CIMException
-
setQualifierType
public void setQualifierType(CIMObjectPath pPath, CIMQualifierType pQualifierType) throws CIMException - Specified by:
setQualifierType
in interfaceCIMOMHandle
- Throws:
CIMException
-
close
- Specified by:
close
in interfaceCIMOMHandle
- Throws:
CIMException
-
close
- Specified by:
close
in interfaceCIMOMHandle
- Throws:
CIMException
-
createNameSpace
- Specified by:
createNameSpace
in interfaceCIMOMHandle
- Throws:
CIMException
-
deleteNameSpace
- Specified by:
deleteNameSpace
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumNameSpace
- Specified by:
enumNameSpace
in interfaceCIMOMHandle
- Throws:
CIMException
-
execQuery
public Enumeration execQuery(CIMObjectPath pPath, String pQuery, String pQueryLanguage) throws CIMException - Specified by:
execQuery
in interfaceCIMOMHandle
- Throws:
CIMException
-
getQualifierType
- Specified by:
getQualifierType
in interfaceCIMOMHandle
- Throws:
CIMException
-
getQualifierType
public CIMQualifierType getQualifierType(CIMObjectPath pPath, String pQualifierType) throws CIMException - Throws:
CIMException
-
enumQualifierTypes
- Specified by:
enumQualifierTypes
in interfaceCIMOMHandle
- Throws:
CIMException
-
performBatchOperations
- Specified by:
performBatchOperations
in interfaceCIMOMHandle
- Throws:
CIMException
-
addCIMListener
- Specified by:
addCIMListener
in interfaceCIMOMHandle
- Throws:
CIMException
-
addCIMListener
- Throws:
CIMException
-
removeCIMListener
- Specified by:
removeCIMListener
in interfaceCIMOMHandle
- Throws:
CIMException
-
getIndicationListener
- Specified by:
getIndicationListener
in interfaceCIMOMHandle
- Throws:
CIMException
-
getIndicationHandler
- Specified by:
getIndicationHandler
in interfaceCIMOMHandle
- Throws:
CIMException
-
newConnection
-
getMultiResponse
- Throws:
IOException
SAXException
-
getDocument
- Throws:
IOException
SAXException
-
transmitRequest
public InputStreamReader transmitRequest(String pCimMethod, HttpHeader pHeader, Document pDocument) throws CIMException, IOException, ProtocolException, SAXException -
getCharacterSet
-
parseHeaders
-
fixResultSet
protected static Vector fixResultSet(CIMObjectPath pRequest, Vector pVector, CIMNameSpace pNameSpace) -
fixResult
-
getSessionProperties
- Specified by:
getSessionProperties
in interfaceCIMOMHandle
-
setSessionProperties
- Specified by:
setSessionProperties
in interfaceCIMOMHandle
-