|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.could.util.location.Location.Authority
The Authority
class represents the autority
and user information for a Location
.
Field Summary |
Fields inherited from interface it.could.util.encoding.EncodingAware |
DEFAULT_ENCODING, PLATFORM_ENCODING |
Method Summary | |
boolean |
equals(Object object)
Check if the specified Object is equal to this
Authority instance. |
String |
getHost()
Returns the decoded host name. |
String |
getHostInfo()
Returns the host info part of the Authority . |
String |
getHostInfo(String encoding)
Returns the host info part of the Authority using the specified character
encoding. |
String |
getPassword()
Returns the decoded password. |
int |
getPort()
Returns the port number. |
String |
getUserInfo()
Returns the "user info" field. |
String |
getUsername()
Returns the decoded user name. |
int |
hashCode()
Return the hash code value for this Authority instance. |
String |
toString()
Return the URL-encoded String representation of this
Authority instance. |
String |
toString(String encoding)
Return the URL-encoded String representation of this
Authority instance using the specified
character encoding. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public String getUsername()
Returns the decoded user name.
public String getPassword()
Returns the decoded password.
public String getUserInfo()
Returns the "user info" field.
This method will concatenate the username and password using the
colon character and return a non-null String
only if
both of them are non-null.
public String getHost()
Returns the decoded host name.
public int getPort()
Returns the port number.
public String getHostInfo()
Returns the host info part of the
Authority
.
This is the encoded representation of the
user name
optionally follwed by the colon (:)
character and the encoded password
.
public String getHostInfo(String encoding) throws UnsupportedEncodingException
Returns the host info part of the
Authority
using the specified character
encoding.
This is the encoded representation of the
user name
optionally follwed by the colon (:)
character and the encoded password
.
UnsupportedEncodingException
public String toString()
Return the URL-encoded String
representation of this
Authority
instance.
toString
in interface Encodable
public String toString(String encoding) throws UnsupportedEncodingException
Return the URL-encoded String
representation of this
Authority
instance using the specified
character encoding.
toString
in interface Encodable
UnsupportedEncodingException
- if the specified encoding is not
supported by the platform.public int hashCode()
Return the hash code value for this
Authority
instance.
public boolean equals(Object object)
Check if the specified Object
is equal to this
Authority
instance.
The specified Object
is considered equal to this one if
it is non-null, it is a Authority
instance, and its host info
equals
this one's.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |