org.sblim.cimclient.internal.uri
Class Authority

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

public class Authority
extends java.lang.Object

[ userinfo "@" ] host [ ":" port ]

userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
pct-encoded = "%" HEXDIG HEXDIG
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
ALPHA = regex([A-Za-z])
DIGIT = regex([0-9])

host = IP-literal / IPv4address / reg-name
IP-literal = "[" ( IPv6address / IPvFuture ) "]"
IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
IPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet
reg-name = *( unreserved / pct-encoded / sub-delims )

IPv6address = 6( h16 ":" ) ls32
/ "::" 5( h16 ":" ) ls32
/ [ h16 ] "::" 4( h16 ":" ) ls32
/ [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
/ [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
/ [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
/ [ *4( h16 ":" ) h16 ] "::" ls32
/ [ *5( h16 ":" ) h16 ] "::" h16
/ [ *6( h16 ":" ) h16 ] "::"

ls32 = ( h16 ":" h16 ) / IPv4address
; least-significant 32 bits of address

h16 = 1*4HEXDIG
; 16 bits of address represented in hexadecimal


Method Summary
 java.lang.String getHost()
          getHost
 java.lang.String getPort()
          getPort
 java.lang.String getUserInfo()
          getUserInfo
static Authority parse(URIString pUriStr)
          Parses userInfo, host and port
 java.lang.String toString()
          str
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

parse

public static Authority parse(URIString pUriStr)
Parses userInfo, host and port

Parameters:
pUriStr -
Returns:
the parsed Authority

toString

public java.lang.String toString()
str

Overrides:
toString in class java.lang.Object
Returns:
a String

getUserInfo

public java.lang.String getUserInfo()
getUserInfo

Returns:
the userInfo String

getHost

public java.lang.String getHost()
getHost

Returns:
the host String

getPort

public java.lang.String getPort()
getPort

Returns:
the port String


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