org.sblim.wbem.client

Class CIMClientXML

Implemented Interfaces:
CIMOMHandle

public class CIMClientXML
extends java.lang.Object
implements CIMOMHandle

CIMClientXML.java (C) Copyright IBM Corp. 2005, 2009 THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Eclipse Public License from http://www.opensource.org/licenses/eclipse-1.0.php

Constructor Summary

CIMClientXML(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol)
CIMClientXML(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties)

Method Summary

void
addCIMListener(CIMListener pListener)
void
addCIMListener(CIMListener pListener, String pId)
Enumeration
associatorNames(CIMObjectPath pPath)
Enumeration
associatorNames(CIMObjectPath pPath, String pAssociationClass, String pResultClass, String pRole, String pResultRole)
Enumeration
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)
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)
Enumeration
enumNameSpace(CIMObjectPath pPath, boolean pDeep)
Enumeration
enumQualifierTypes(CIMObjectPath pPath)
Enumeration
enumerateClassNames(CIMObjectPath pObjectName, boolean pDeep)
Enumeration
enumerateClasses(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin)
Enumeration
enumerateInstanceNames(CIMObjectPath pPath)
Enumeration
enumerateInstances(CIMObjectPath pPath, boolean pDeep, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
Enumeration
execQuery(CIMObjectPath pPath)
Enumeration
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 void
getCIMOMCapabilities()
protected String
getCharacterSet(HttpHeader pHeader)
CIMClass
getClass(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
CIMResponse
getDocument(InputStreamReader pStream)
CIMInstance
getIndicationHandler(CIMListener pListener)
CIMInstance
getIndicationListener(CIMListener pListener)
CIMInstance
getInstance(CIMObjectPath pPath, boolean pLocalOnly, boolean pIncludeQualifiers, boolean pIncludeClassOrigin, java.lang.String[] pPropertyList)
Locale
getLocale()
CIMResponse
getMultiResponse(InputStreamReader pStream)
CIMNameSpace
getNameSpace()
CIMValue
getProperty(CIMObjectPath pPath, String pPropertyName)
CIMQualifierType
getQualifierType(CIMObjectPath pPath)
CIMQualifierType
getQualifierType(CIMObjectPath pPath, String pQualifierType)
SessionProperties
getSessionProperties()
void
init(CIMNameSpace pNamespace, Principal pPrincipal, Object pCredential, String pProtocol, SessionProperties pProperties)
CIMValue
invokeMethod(CIMObjectPath pObjectName, String pMethodName, Vector pInputArguments, Vector pOutputArguments)
HttpUrlConnection
newConnection(String pCimMethod, HttpHeader pHeader)
protected HttpHeader
parseHeaders(URLConnection pConnection)
BatchResult
performBatchOperations(BatchHandle pBatchHandle)
void
preCheck(CIMNameSpace pNamespace)
void
preCheck(CIMObjectPath pPath)
Enumeration
referenceNames(CIMObjectPath pPath)
Enumeration
referenceNames(CIMObjectPath pPath, String pResultClass, String pRole)
Enumeration
references(CIMObjectPath pPath)
Enumeration
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
setLocale(Locale pLocale)
void
setProperty(CIMObjectPath pPath, String pPropertyName)
void
setProperty(CIMObjectPath pPath, String pPropertyName, CIMValue pValue)
void
setQualifierType(CIMObjectPath pPath, CIMQualifierType pQualifierType)
void
setSessionProperties(SessionProperties pProperties)
InputStreamReader
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

CIMClientXML

public CIMClientXML(CIMNameSpace pNamespace,
                    Principal pPrincipal,
                    Object pCredential,
                    String pProtocol,
                    SessionProperties pProperties)
            throws CIMException

Method Details

addCIMListener

public void addCIMListener(CIMListener pListener)
            throws CIMException
Specified by:
addCIMListener in interface CIMOMHandle

addCIMListener

public void addCIMListener(CIMListener pListener,
                           String pId)
            throws CIMException

associatorNames

public Enumeration associatorNames(CIMObjectPath pPath)
            throws CIMException
Specified by:
associatorNames in interface CIMOMHandle

associatorNames

public Enumeration associatorNames(CIMObjectPath pPath,
                                   String pAssociationClass,
                                   String pResultClass,
                                   String pRole,
                                   String pResultRole)
            throws CIMException
Specified by:
associatorNames in interface CIMOMHandle

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

close

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

close

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

createClass

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

createInstance

public CIMObjectPath createInstance(CIMObjectPath pObjectName,
                                    CIMInstance pInstance)
            throws CIMException
Specified by:
createInstance in interface CIMOMHandle

createNameSpace

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

createQualifierType

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

deleteClass

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

deleteInstance

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

deleteNameSpace

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

deleteQualifierType

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

enumNameSpace

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

enumQualifierTypes

public Enumeration enumQualifierTypes(CIMObjectPath pPath)
            throws CIMException
Specified by:
enumQualifierTypes in interface CIMOMHandle

enumerateClassNames

public Enumeration enumerateClassNames(CIMObjectPath pObjectName,
                                       boolean pDeep)
            throws CIMException
Specified by:
enumerateClassNames in interface CIMOMHandle

enumerateClasses

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

enumerateInstanceNames

public Enumeration enumerateInstanceNames(CIMObjectPath pPath)
            throws CIMException
Specified by:
enumerateInstanceNames in interface CIMOMHandle

enumerateInstances

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

execQuery

public Enumeration execQuery(CIMObjectPath pPath)
            throws CIMException

execQuery

public Enumeration execQuery(CIMObjectPath pPath,
                             String pQuery,
                             String pQueryLanguage)
            throws CIMException
Specified by:
execQuery in interface CIMOMHandle

fixResult

protected static Object fixResult(CIMObjectPath pRequest,
                                  Object pObject,
                                  CIMNameSpace pNameSpace)

fixResultSet

protected static Vector fixResultSet(CIMObjectPath pRequest,
                                     Vector pVector,
                                     CIMNameSpace pNameSpace)

getCIMOMCapabilities

protected void getCIMOMCapabilities()

getCharacterSet

protected String getCharacterSet(HttpHeader pHeader)

getClass

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

getDocument

public CIMResponse getDocument(InputStreamReader pStream)
            throws IOException,
                   SAXException

getIndicationHandler

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

getIndicationListener

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

getInstance

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

getLocale

public Locale getLocale()
Specified by:
getLocale in interface CIMOMHandle

getMultiResponse

public CIMResponse getMultiResponse(InputStreamReader pStream)
            throws IOException,
                   SAXException

getNameSpace

public CIMNameSpace getNameSpace()
Specified by:
getNameSpace in interface CIMOMHandle

getProperty

public CIMValue getProperty(CIMObjectPath pPath,
                            String pPropertyName)
            throws CIMException
Specified by:
getProperty in interface CIMOMHandle

getQualifierType

public CIMQualifierType getQualifierType(CIMObjectPath pPath)
            throws CIMException
Specified by:
getQualifierType in interface CIMOMHandle

getQualifierType

public CIMQualifierType getQualifierType(CIMObjectPath pPath,
                                         String pQualifierType)
            throws CIMException

getSessionProperties

public SessionProperties getSessionProperties()
Specified by:
getSessionProperties in interface CIMOMHandle

init

public void init(CIMNameSpace pNamespace,
                 Principal pPrincipal,
                 Object pCredential,
                 String pProtocol,
                 SessionProperties pProperties)
            throws CIMException

invokeMethod

public CIMValue invokeMethod(CIMObjectPath pObjectName,
                             String pMethodName,
                             Vector pInputArguments,
                             Vector pOutputArguments)
            throws CIMException
Specified by:
invokeMethod in interface CIMOMHandle

newConnection

public HttpUrlConnection newConnection(String pCimMethod,
                                       HttpHeader pHeader)

parseHeaders

protected HttpHeader parseHeaders(URLConnection pConnection)

performBatchOperations

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

preCheck

public void preCheck(CIMNameSpace pNamespace)
            throws CIMException

preCheck

public void preCheck(CIMObjectPath pPath)
            throws CIMException

referenceNames

public Enumeration referenceNames(CIMObjectPath pPath)
            throws CIMException
Specified by:
referenceNames in interface CIMOMHandle

referenceNames

public Enumeration referenceNames(CIMObjectPath pPath,
                                  String pResultClass,
                                  String pRole)
            throws CIMException
Specified by:
referenceNames in interface CIMOMHandle

references

public Enumeration references(CIMObjectPath pPath)
            throws CIMException
Specified by:
references in interface CIMOMHandle

references

public Enumeration references(CIMObjectPath pPath,
                              String pResultClass,
                              String pRole,
                              boolean pIncludeQualifiers,
                              boolean pIncludeClassOrigin,
                              String[] pPropertyList)
            throws CIMException
Specified by:
references in interface CIMOMHandle

removeCIMListener

public void removeCIMListener(CIMListener pListener)
            throws CIMException
Specified by:
removeCIMListener in interface CIMOMHandle

setClass

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

setInstance

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

setLocale

public void setLocale(Locale pLocale)
Specified by:
setLocale in interface CIMOMHandle

setProperty

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

setProperty

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

setQualifierType

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

setSessionProperties

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

transmitRequest

public InputStreamReader transmitRequest(String pCimMethod,
                                         HttpHeader pHeader,
                                         Document pDocument)
            throws CIMException,
                   IOException,
                   ProtocolException,
                   SAXException

useHttp11

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

useMPost

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

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