org.sblim.cimclient.internal.uri
Class NamespaceHandle

java.lang.Object
  extended by org.sblim.cimclient.internal.uri.NamespaceHandle

public class NamespaceHandle
extends Object

     namespaceHandle = ["//" authority] "/" [namespaceName]
     namespaceName   = IDENTIFIER *("/"IDENTIFIER)
 


Constructor Summary
NamespaceHandle(String pNamespaceName)
          Constructs a NamespaceHandle with namespace name only.
 
Method Summary
 String getHost()
          getHost
 String getName()
          getName
 String getPort()
          getPort
 String getUserInfo()
          getUserInfo
static NamespaceHandle parse(URIString pUriStr)
          Factory method which tries to build a NamespaceHandle from the passed pUriStr
static String parseNamespaceName(URIString pUriStr)
          IDENTIFIER *("/"IDENTIFIER)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceHandle

public NamespaceHandle(String pNamespaceName)
Constructs a NamespaceHandle with namespace name only.

Parameters:
pNamespaceName -
Method Detail

parse

public static NamespaceHandle parse(URIString pUriStr)
Factory method which tries to build a NamespaceHandle from the passed pUriStr

Parameters:
pUriStr -
Returns:
a NamespaceHandle or null in case of failure

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getName

public String getName()
getName

Returns:
String

getUserInfo

public String getUserInfo()
getUserInfo

Returns:
String

getHost

public String getHost()
getHost

Returns:
String

getPort

public String getPort()
getPort

Returns:
String

parseNamespaceName

public static String parseNamespaceName(URIString pUriStr)
IDENTIFIER *("/"IDENTIFIER)

Parameters:
pUriStr -
Returns:
String containing the namespace name or null if failed.


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