org.sblim.wbem.client
Class CIMClientXML

java.lang.Object
  extended by org.sblim.wbem.client.CIMClientXML
All Implemented Interfaces:
CIMOMHandle

public class CIMClientXML
extends java.lang.Object
implements CIMOMHandle


Constructor Summary
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
 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 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)
           
 java.util.Enumeration getEnumeration(java.io.InputStreamReader pStream, CIMObjectPath pPath)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface CIMOMHandle

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface CIMOMHandle

useHttp11

public void useHttp11(boolean pValue)
Specified by:
useHttp11 in interface CIMOMHandle

useMPost

public void useMPost(boolean pValue)
Specified by:
useMPost in interface CIMOMHandle

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 interface CIMOMHandle

associatorNames

public java.util.Enumeration associatorNames(CIMObjectPath pPath)
                                      throws CIMException
Specified by:
associatorNames in interface CIMOMHandle
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 interface CIMOMHandle
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 interface CIMOMHandle
Throws:
CIMException

deleteInstance

public void deleteInstance(CIMObjectPath pPath)
                    throws CIMException
Specified by:
deleteInstance in interface CIMOMHandle
Throws:
CIMException

enumerateInstanceNames

public java.util.Enumeration enumerateInstanceNames(CIMObjectPath pPath)
                                             throws CIMException
Specified by:
enumerateInstanceNames in interface CIMOMHandle
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 interface CIMOMHandle
Throws:
CIMException

getInstance

public CIMInstance getInstance(CIMObjectPath pPath,
                               boolean pLocalOnly,
                               boolean pIncludeQualifiers,
                               boolean pIncludeClassOrigin,
                               java.lang.String[] pPropertyList)
                        throws CIMException
Specified by:
getInstance in interface CIMOMHandle
Throws:
CIMException

getClass

public CIMClass getClass(CIMObjectPath pPath,
                         boolean pLocalOnly,
                         boolean pIncludeQualifiers,
                         boolean pIncludeClassOrigin,
                         java.lang.String[] pPropertyList)
                  throws CIMException
Specified by:
getClass in interface CIMOMHandle
Throws:
CIMException

createInstance

public CIMObjectPath createInstance(CIMObjectPath pObjectName,
                                    CIMInstance pInstance)
                             throws CIMException
Specified by:
createInstance in interface CIMOMHandle
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 interface CIMOMHandle
Throws:
CIMException

createClass

public void createClass(CIMObjectPath pPath,
                        CIMClass pClass)
                 throws CIMException
Specified by:
createClass in interface CIMOMHandle
Throws:
CIMException

createQualifierType

public void createQualifierType(CIMObjectPath pPath,
                                CIMQualifierType pQualifierType)
                         throws CIMException
Specified by:
createQualifierType in interface CIMOMHandle
Throws:
CIMException

deleteClass

public void deleteClass(CIMObjectPath pPath)
                 throws CIMException
Specified by:
deleteClass in interface CIMOMHandle
Throws:
CIMException

deleteQualifierType

public void deleteQualifierType(CIMObjectPath pPath)
                         throws CIMException
Specified by:
deleteQualifierType in interface CIMOMHandle
Throws:
CIMException

enumerateClasses

public java.util.Enumeration enumerateClasses(CIMObjectPath pPath,
                                              boolean pDeep,
                                              boolean pLocalOnly,
                                              boolean pIncludeQualifiers,
                                              boolean pIncludeClassOrigin)
                                       throws CIMException
Specified by:
enumerateClasses in interface CIMOMHandle
Throws:
CIMException

enumerateClassNames

public java.util.Enumeration enumerateClassNames(CIMObjectPath pObjectName,
                                                 boolean pDeep)
                                          throws CIMException
Specified by:
enumerateClassNames in interface CIMOMHandle
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 interface CIMOMHandle
Throws:
CIMException

referenceNames

public java.util.Enumeration referenceNames(CIMObjectPath pPath)
                                     throws CIMException
Specified by:
referenceNames in interface CIMOMHandle
Throws:
CIMException

referenceNames

public java.util.Enumeration referenceNames(CIMObjectPath pPath,
                                            java.lang.String pResultClass,
                                            java.lang.String pRole)
                                     throws CIMException
Specified by:
referenceNames in interface CIMOMHandle
Throws:
CIMException

references

public java.util.Enumeration references(CIMObjectPath pPath)
                                 throws CIMException
Specified by:
references in interface CIMOMHandle
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 interface CIMOMHandle
Throws:
CIMException

setClass

public void setClass(CIMObjectPath pPath,
                     CIMClass pClass)
              throws CIMException
Specified by:
setClass in interface CIMOMHandle
Throws:
CIMException

setInstance

public void setInstance(CIMObjectPath pPath,
                        CIMInstance pInstance,
                        boolean pIncludeQualifiers,
                        java.lang.String[] pPropertyList)
                 throws CIMException
Specified by:
setInstance in interface CIMOMHandle
Throws:
CIMException

setProperty

public void setProperty(CIMObjectPath pPath,
                        java.lang.String pPropertyName)
                 throws CIMException
Specified by:
setProperty in interface CIMOMHandle
Throws:
CIMException

setProperty

public void setProperty(CIMObjectPath pPath,
                        java.lang.String pPropertyName,
                        CIMValue pValue)
                 throws CIMException
Specified by:
setProperty in interface CIMOMHandle
Throws:
CIMException

setQualifierType

public void setQualifierType(CIMObjectPath pPath,
                             CIMQualifierType pQualifierType)
                      throws CIMException
Specified by:
setQualifierType in interface CIMOMHandle
Throws:
CIMException

close

public void close()
           throws CIMException
Specified by:
close in interface CIMOMHandle
Throws:
CIMException

createNameSpace

public void createNameSpace(CIMNameSpace pNamespace)
                     throws CIMException
Specified by:
createNameSpace in interface CIMOMHandle
Throws:
CIMException

deleteNameSpace

public void deleteNameSpace(CIMNameSpace pNamespace)
                     throws CIMException
Specified by:
deleteNameSpace in interface CIMOMHandle
Throws:
CIMException

enumNameSpace

public java.util.Enumeration enumNameSpace(CIMObjectPath pPath,
                                           boolean pDeep)
                                    throws CIMException
Specified by:
enumNameSpace in interface CIMOMHandle
Throws:
CIMException

execQuery

public java.util.Enumeration execQuery(CIMObjectPath pPath,
                                       java.lang.String pQuery,
                                       java.lang.String pQueryLanguage)
                                throws CIMException
Specified by:
execQuery in interface CIMOMHandle
Throws:
CIMException

getQualifierType

public CIMQualifierType getQualifierType(CIMObjectPath pPath)
                                  throws CIMException
Specified by:
getQualifierType in interface CIMOMHandle
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 interface CIMOMHandle
Throws:
CIMException

performBatchOperations

public BatchResult performBatchOperations(BatchHandle pBatchHandle)
                                   throws CIMException
Specified by:
performBatchOperations in interface CIMOMHandle
Throws:
CIMException

addCIMListener

public void addCIMListener(CIMListener pListener)
                    throws CIMException
Specified by:
addCIMListener in interface CIMOMHandle
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 interface CIMOMHandle
Throws:
CIMException

getIndicationListener

public CIMInstance getIndicationListener(CIMListener pListener)
                                  throws CIMException
Specified by:
getIndicationListener in interface CIMOMHandle
Throws:
CIMException

getIndicationHandler

public CIMInstance getIndicationHandler(CIMListener pListener)
                                 throws CIMException
Specified by:
getIndicationHandler in interface CIMOMHandle
Throws:
CIMException

newConnection

public HttpUrlConnection newConnection(java.lang.String pCimMethod,
                                       HttpHeader pHeader)

getEnumeration

public java.util.Enumeration getEnumeration(java.io.InputStreamReader pStream,
                                            CIMObjectPath pPath)
                                     throws java.io.IOException,
                                            org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

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 interface CIMOMHandle

setSessionProperties

public void setSessionProperties(SessionProperties pProperties)
Specified by:
setSessionProperties in interface CIMOMHandle


Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.