|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.net.connector.URIRequestInfo
Implementation of the ConnectionRequestInfo
interface that enables a
connector to pass URI data across the connection request flow.
Constructor Summary | |
URIRequestInfo(URI uri)
Construct a new URIRequestInfo . |
Method Summary | |
boolean |
equals(java.lang.Object other)
Checks whether this instance is equal to another. |
void |
export(Properties properties)
Helper to export this to a Properties instance. |
java.lang.String |
getHost()
Returns the host. |
java.net.InetAddress |
getHostAddress()
Returns the host as an InetAddress . |
int |
getPort()
Returns the port. |
java.security.Principal |
getPrincipal()
Returns the security principal. |
URI |
getURI()
Returns the URI. |
int |
hashCode()
Returns a hashcode for this request info. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public URIRequestInfo(URI uri)
URIRequestInfo
.uri
- the URIMethod Detail |
public java.lang.String getHost()
null
if the host was not specified in
the URI.public java.net.InetAddress getHostAddress() throws java.net.UnknownHostException
InetAddress
.null
if the host was not specified in
the URI.java.net.UnknownHostException
- if no IP address for the host could be
found.public int getPort()
public URI getURI()
public java.security.Principal getPrincipal()
public void export(Properties properties)
Properties
instance.properties
- the properties to export to.public boolean equals(java.lang.Object other)
equals
in interface ConnectionRequestInfo
equals
in class java.lang.Object
other
- the object to comparetrue
if the two instances are equal; otherwise
false
public int hashCode()
hashCode
in interface ConnectionRequestInfo
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |