|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.sblim.wbem.cim.CIMNameSpace
| Field Summary | |
|---|---|
static char |
NAMESPACE_SEPARATOR
|
| Constructor Summary | |
|---|---|
CIMNameSpace()
Constructs and instantiates a default CIM namespace name. |
|
CIMNameSpace(java.lang.String pURI)
Constructs a CIM namespace, pointing to a specified host or URI (protocol://hostname[:port]/file), i.e. |
|
CIMNameSpace(java.lang.String pHost,
java.lang.String pNamespace)
Constructs an object which represents a CIMNameSpace. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHost()
Returns the hostname of the CIMNameSpace |
java.net.URI |
getHostURI()
Returns the URI representation of the CIMNameSpace. |
java.net.URL |
getHostURL()
Returns the URL representation of the CIMNameSpace. |
java.lang.String |
getNameSpace()
Returns the namespace fragment of the CIMNameSpace. |
int |
getPort()
Returns the port defined for this namespace by the URI. |
java.lang.String |
getScheme()
Returns the scheme specified on the URI. |
int |
hashCode()
|
static CIMNameSpace |
parse(java.lang.String pURI)
Deprecated. The CIMNameSpace(String) constructor must be used instead of this method. |
void |
setHost(java.lang.String pHost)
Specifies the host for this CIMNameSpace object. |
void |
setNameSpace(java.lang.String pNamespace)
Specifies the namespace for this CIMNameSpace object. |
void |
setPort(int pPort)
Specifies the port for this CIMNameSpace object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final char NAMESPACE_SEPARATOR
| Constructor Detail |
public CIMNameSpace()
throws CIMException
CIMException - CIM_ERR_FAILED - if a malformed URL is constructed from the
specified parameters
public CIMNameSpace(java.lang.String pURI)
throws CIMException
pURI - The URI String
CIMException
public CIMNameSpace(java.lang.String pHost,
java.lang.String pNamespace)
throws CIMException
pHost - host= protocol://hostname[:port]/file host=
"https://myhostname/" host= "http://myhostname:5988/cimom"
host= "myhostname"pNamespace - a string which represents the namespace in the CIM Object
Manager. According to the spec it should not starts or ends
with '/'. This are examples of valid namespace. namespace=
"root/cimv2" namespace= "root"
java.lang.IllegalArgumentException - if the
CIMException - CIM_ERR_INVALID_PARAMETER - if the URI is malformed| Method Detail |
public java.lang.Object clone()
public boolean equals(java.lang.Object o)
public java.lang.String getHost()
public java.net.URI getHostURI()
throws CIMException
CIMException - malformed URI exception
public java.net.URL getHostURL()
throws CIMException
CIMException - malformed URL exceptionURI.toURL()public java.lang.String getNameSpace()
public java.lang.String getScheme()
public int hashCode()
public static CIMNameSpace parse(java.lang.String pURI)
throws CIMException
pURI - The URI string
CIMExceptionpublic void setPort(int pPort)
pPort - public int getPort()
public void setHost(java.lang.String pHost)
pHost -
public void setNameSpace(java.lang.String pNamespace)
throws CIMException
pNamespace - The namespace
CIMExceptionpublic java.lang.String toString()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||