Package org.sblim.wbem.client
Class CIMClientXML
- java.lang.Object
-
- org.sblim.wbem.client.CIMClientXML
-
- All Implemented Interfaces:
CIMOMHandle
public class CIMClientXML extends java.lang.Object implements CIMOMHandle
-
-
Constructor Summary
Constructors Constructor Description CIMClientXML(CIMNameSpace pNamespace, java.security.Principal pPrincipal, java.lang.Object pCredential, java.lang.String pProtocol)
CIMClientXML(CIMNameSpace pNamespace, java.security.Principal pPrincipal, java.lang.Object pCredential, java.lang.String pProtocol, SessionProperties pProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCIMListener(CIMListener pListener)
void
addCIMListener(CIMListener pListener, java.lang.String pId)
java.util.Enumeration
associatorNames(CIMObjectPath pPath)
java.util.Enumeration
associatorNames(CIMObjectPath pPath, java.lang.String pAssociationClass, java.lang.String pResultClass, java.lang.String pRole, java.lang.String pResultRole)
java.util.Enumeration
associators(CIMObjectPath pPath, java.lang.String pAssociationClass, java.lang.String pResultClass, java.lang.String pRole, java.lang.String pResultRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
void
close()
void
close(boolean pKeepEnumerations)
void
createClass(CIMObjectPath pPath, CIMClass pClass)
CIMObjectPath
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)
java.util.Enumeration
enumerateClasses(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin)
java.util.Enumeration
enumerateClassNames(CIMObjectPath pObjectName, boolean pDeep)
java.util.Enumeration
enumerateInstanceNames(CIMObjectPath pPath)
java.util.Enumeration
enumerateInstances(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
java.util.Enumeration
enumNameSpace(CIMObjectPath pPath, boolean pDeep)
java.util.Enumeration
enumQualifierTypes(CIMObjectPath pPath)
java.util.Enumeration
execQuery(CIMObjectPath pPath)
java.util.Enumeration
execQuery(CIMObjectPath pPath, java.lang.String pQuery, java.lang.String pQueryLanguage)
protected static java.lang.Object
fixResult(CIMObjectPath pRequest, java.lang.Object pObject, CIMNameSpace pNameSpace)
protected static java.util.Vector
fixResultSet(CIMObjectPath pRequest, java.util.Vector pVector, CIMNameSpace pNameSpace)
protected java.lang.String
getCharacterSet(HttpHeader pHeader)
protected void
getCIMOMCapabilities()
CIMClass
getClass(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
CIMResponse
getDocument(java.io.InputStreamReader pStream)
CIMInstance
getIndicationHandler(CIMListener pListener)
CIMInstance
getIndicationListener(CIMListener pListener)
CIMInstance
getInstance(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
java.util.Locale
getLocale()
CIMResponse
getMultiResponse(java.io.InputStreamReader pStream)
CIMNameSpace
getNameSpace()
CIMValue
getProperty(CIMObjectPath pPath, java.lang.String pPropertyName)
CIMQualifierType
getQualifierType(CIMObjectPath pPath)
CIMQualifierType
getQualifierType(CIMObjectPath pPath, java.lang.String pQualifierType)
SessionProperties
getSessionProperties()
void
init(CIMNameSpace pNamespace, java.security.Principal pPrincipal, java.lang.Object pCredential, java.lang.String pProtocol, SessionProperties pProperties)
CIMValue
invokeMethod(CIMObjectPath pObjectName, java.lang.String pMethodName, java.util.Vector pInputArguments, java.util.Vector pOutputArguments)
HttpUrlConnection
newConnection(java.lang.String pCimMethod, HttpHeader pHeader)
protected HttpHeader
parseHeaders(java.net.URLConnection pConnection)
BatchResult
performBatchOperations(BatchHandle pBatchHandle)
void
preCheck(CIMNameSpace pNamespace)
void
preCheck(CIMObjectPath pPath)
java.util.Enumeration
referenceNames(CIMObjectPath pPath)
java.util.Enumeration
referenceNames(CIMObjectPath pPath, java.lang.String pResultClass, java.lang.String pRole)
java.util.Enumeration
references(CIMObjectPath pPath)
java.util.Enumeration
references(CIMObjectPath pPath, java.lang.String pResultClass, java.lang.String pRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
void
removeCIMListener(CIMListener pListener)
void
setClass(CIMObjectPath pPath, CIMClass pClass)
void
setInstance(CIMObjectPath pPath, CIMInstance pInstance, boolean pIncludeQualifiers, java.lang.String[] pPropertyList)
void
setLocale(java.util.Locale pLocale)
void
setProperty(CIMObjectPath pPath, java.lang.String pPropertyName)
void
setProperty(CIMObjectPath pPath, java.lang.String pPropertyName, CIMValue pValue)
void
setQualifierType(CIMObjectPath pPath, CIMQualifierType pQualifierType)
void
setSessionProperties(SessionProperties pProperties)
java.io.InputStreamReader
transmitRequest(java.lang.String pCimMethod, HttpHeader pHeader, org.w3c.dom.Document pDocument)
void
useHttp11(boolean pValue)
void
useMPost(boolean pValue)
-
-
-
Constructor Detail
-
CIMClientXML
public CIMClientXML(CIMNameSpace pNamespace, java.security.Principal pPrincipal, java.lang.Object pCredential, java.lang.String pProtocol) throws CIMException
- Throws:
CIMException
-
CIMClientXML
public CIMClientXML(CIMNameSpace pNamespace, java.security.Principal pPrincipal, java.lang.Object pCredential, java.lang.String pProtocol, SessionProperties pProperties) throws CIMException
- Throws:
CIMException
-
-
Method Detail
-
init
public void init(CIMNameSpace pNamespace, java.security.Principal pPrincipal, java.lang.Object pCredential, java.lang.String pProtocol, SessionProperties pProperties) throws CIMException
- Throws:
CIMException
-
getCIMOMCapabilities
protected void getCIMOMCapabilities()
-
setLocale
public void setLocale(java.util.Locale pLocale)
- Specified by:
setLocale
in interfaceCIMOMHandle
-
getLocale
public java.util.Locale 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
public void preCheck(CIMObjectPath pPath) throws CIMException
- Throws:
CIMException
-
preCheck
public void preCheck(CIMNameSpace pNamespace) throws CIMException
- Throws:
CIMException
-
getNameSpace
public CIMNameSpace getNameSpace()
- Specified by:
getNameSpace
in interfaceCIMOMHandle
-
associatorNames
public java.util.Enumeration associatorNames(CIMObjectPath pPath) throws CIMException
- Specified by:
associatorNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
associatorNames
public java.util.Enumeration associatorNames(CIMObjectPath pPath, java.lang.String pAssociationClass, java.lang.String pResultClass, java.lang.String pRole, java.lang.String pResultRole) throws CIMException
- Specified by:
associatorNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
associators
public java.util.Enumeration associators(CIMObjectPath pPath, java.lang.String pAssociationClass, java.lang.String pResultClass, java.lang.String pRole, java.lang.String pResultRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList) throws CIMException
- Specified by:
associators
in interfaceCIMOMHandle
- Throws:
CIMException
-
deleteInstance
public void deleteInstance(CIMObjectPath pPath) throws CIMException
- Specified by:
deleteInstance
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateInstanceNames
public java.util.Enumeration enumerateInstanceNames(CIMObjectPath pPath) throws CIMException
- Specified by:
enumerateInstanceNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateInstances
public java.util.Enumeration enumerateInstances(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList) throws CIMException
- Specified by:
enumerateInstances
in interfaceCIMOMHandle
- Throws:
CIMException
-
getInstance
public CIMInstance getInstance(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList) throws CIMException
- Specified by:
getInstance
in interfaceCIMOMHandle
- Throws:
CIMException
-
getClass
public CIMClass getClass(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.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, java.lang.String pMethodName, java.util.Vector pInputArguments, java.util.Vector pOutputArguments) throws CIMException
- Specified by:
invokeMethod
in interfaceCIMOMHandle
- Throws:
CIMException
-
createClass
public void createClass(CIMObjectPath pPath, CIMClass pClass) throws CIMException
- 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
public void deleteClass(CIMObjectPath pPath) throws CIMException
- Specified by:
deleteClass
in interfaceCIMOMHandle
- Throws:
CIMException
-
deleteQualifierType
public void deleteQualifierType(CIMObjectPath pPath) throws CIMException
- Specified by:
deleteQualifierType
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateClasses
public java.util.Enumeration enumerateClasses(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin) throws CIMException
- Specified by:
enumerateClasses
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumerateClassNames
public java.util.Enumeration enumerateClassNames(CIMObjectPath pObjectName, boolean pDeep) throws CIMException
- Specified by:
enumerateClassNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
execQuery
public java.util.Enumeration execQuery(CIMObjectPath pPath) throws CIMException
- Throws:
CIMException
-
getProperty
public CIMValue getProperty(CIMObjectPath pPath, java.lang.String pPropertyName) throws CIMException
- Specified by:
getProperty
in interfaceCIMOMHandle
- Throws:
CIMException
-
referenceNames
public java.util.Enumeration referenceNames(CIMObjectPath pPath) throws CIMException
- Specified by:
referenceNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
referenceNames
public java.util.Enumeration referenceNames(CIMObjectPath pPath, java.lang.String pResultClass, java.lang.String pRole) throws CIMException
- Specified by:
referenceNames
in interfaceCIMOMHandle
- Throws:
CIMException
-
references
public java.util.Enumeration references(CIMObjectPath pPath) throws CIMException
- Specified by:
references
in interfaceCIMOMHandle
- Throws:
CIMException
-
references
public java.util.Enumeration references(CIMObjectPath pPath, java.lang.String pResultClass, java.lang.String pRole, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList) throws CIMException
- Specified by:
references
in interfaceCIMOMHandle
- Throws:
CIMException
-
setClass
public void setClass(CIMObjectPath pPath, CIMClass pClass) throws CIMException
- Specified by:
setClass
in interfaceCIMOMHandle
- Throws:
CIMException
-
setInstance
public void setInstance(CIMObjectPath pPath, CIMInstance pInstance, boolean pIncludeQualifiers, java.lang.String[] pPropertyList) throws CIMException
- Specified by:
setInstance
in interfaceCIMOMHandle
- Throws:
CIMException
-
setProperty
public void setProperty(CIMObjectPath pPath, java.lang.String pPropertyName) throws CIMException
- Specified by:
setProperty
in interfaceCIMOMHandle
- Throws:
CIMException
-
setProperty
public void setProperty(CIMObjectPath pPath, java.lang.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
public void close() throws CIMException
- Specified by:
close
in interfaceCIMOMHandle
- Throws:
CIMException
-
close
public void close(boolean pKeepEnumerations) throws CIMException
- Specified by:
close
in interfaceCIMOMHandle
- Throws:
CIMException
-
createNameSpace
public void createNameSpace(CIMNameSpace pNamespace) throws CIMException
- Specified by:
createNameSpace
in interfaceCIMOMHandle
- Throws:
CIMException
-
deleteNameSpace
public void deleteNameSpace(CIMNameSpace pNamespace) throws CIMException
- Specified by:
deleteNameSpace
in interfaceCIMOMHandle
- Throws:
CIMException
-
enumNameSpace
public java.util.Enumeration enumNameSpace(CIMObjectPath pPath, boolean pDeep) throws CIMException
- Specified by:
enumNameSpace
in interfaceCIMOMHandle
- Throws:
CIMException
-
execQuery
public java.util.Enumeration execQuery(CIMObjectPath pPath, java.lang.String pQuery, java.lang.String pQueryLanguage) throws CIMException
- Specified by:
execQuery
in interfaceCIMOMHandle
- Throws:
CIMException
-
getQualifierType
public CIMQualifierType getQualifierType(CIMObjectPath pPath) throws CIMException
- Specified by:
getQualifierType
in interfaceCIMOMHandle
- Throws:
CIMException
-
getQualifierType
public CIMQualifierType getQualifierType(CIMObjectPath pPath, java.lang.String pQualifierType) throws CIMException
- Throws:
CIMException
-
enumQualifierTypes
public java.util.Enumeration enumQualifierTypes(CIMObjectPath pPath) throws CIMException
- Specified by:
enumQualifierTypes
in interfaceCIMOMHandle
- Throws:
CIMException
-
performBatchOperations
public BatchResult performBatchOperations(BatchHandle pBatchHandle) throws CIMException
- Specified by:
performBatchOperations
in interfaceCIMOMHandle
- Throws:
CIMException
-
addCIMListener
public void addCIMListener(CIMListener pListener) throws CIMException
- Specified by:
addCIMListener
in interfaceCIMOMHandle
- Throws:
CIMException
-
addCIMListener
public void addCIMListener(CIMListener pListener, java.lang.String pId) throws CIMException
- Throws:
CIMException
-
removeCIMListener
public void removeCIMListener(CIMListener pListener) throws CIMException
- Specified by:
removeCIMListener
in interfaceCIMOMHandle
- Throws:
CIMException
-
getIndicationListener
public CIMInstance getIndicationListener(CIMListener pListener) throws CIMException
- Specified by:
getIndicationListener
in interfaceCIMOMHandle
- Throws:
CIMException
-
getIndicationHandler
public CIMInstance getIndicationHandler(CIMListener pListener) throws CIMException
- Specified by:
getIndicationHandler
in interfaceCIMOMHandle
- Throws:
CIMException
-
newConnection
public HttpUrlConnection newConnection(java.lang.String pCimMethod, HttpHeader pHeader)
-
getMultiResponse
public CIMResponse getMultiResponse(java.io.InputStreamReader pStream) throws java.io.IOException, org.xml.sax.SAXException
- Throws:
java.io.IOException
org.xml.sax.SAXException
-
getDocument
public CIMResponse getDocument(java.io.InputStreamReader pStream) throws java.io.IOException, org.xml.sax.SAXException
- Throws:
java.io.IOException
org.xml.sax.SAXException
-
transmitRequest
public java.io.InputStreamReader transmitRequest(java.lang.String pCimMethod, HttpHeader pHeader, org.w3c.dom.Document pDocument) throws CIMException, java.io.IOException, java.net.ProtocolException, org.xml.sax.SAXException
- Throws:
CIMException
java.io.IOException
java.net.ProtocolException
org.xml.sax.SAXException
-
getCharacterSet
protected java.lang.String getCharacterSet(HttpHeader pHeader)
-
parseHeaders
protected HttpHeader parseHeaders(java.net.URLConnection pConnection)
-
fixResultSet
protected static java.util.Vector fixResultSet(CIMObjectPath pRequest, java.util.Vector pVector, CIMNameSpace pNameSpace)
-
fixResult
protected static java.lang.Object fixResult(CIMObjectPath pRequest, java.lang.Object pObject, CIMNameSpace pNameSpace)
-
getSessionProperties
public SessionProperties getSessionProperties()
- Specified by:
getSessionProperties
in interfaceCIMOMHandle
-
setSessionProperties
public void setSessionProperties(SessionProperties pProperties)
- Specified by:
setSessionProperties
in interfaceCIMOMHandle
-
-