org.exolab.jms.net.connector
Class URIRequestInfo

java.lang.Object
  |
  +--org.exolab.jms.net.connector.URIRequestInfo
All Implemented Interfaces:
ConnectionRequestInfo
Direct Known Subclasses:
HTTPRequestInfo, RMIRequestInfo, SocketRequestInfo

public class URIRequestInfo
extends java.lang.Object
implements ConnectionRequestInfo

Implementation of the ConnectionRequestInfo interface that enables a connector to pass URI data across the connection request flow.

Version:
$Revision: 1.3 $ $Date: 2005/05/03 13:45:58 $
Author:
Tim Anderson

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

URIRequestInfo

public URIRequestInfo(URI uri)
Construct a new URIRequestInfo.
Parameters:
uri - the URI
Method Detail

getHost

public java.lang.String getHost()
Returns the host.
Returns:
the host, or null if the host was not specified in the URI.

getHostAddress

public java.net.InetAddress getHostAddress()
                                    throws java.net.UnknownHostException
Returns the host as an InetAddress.
Returns:
the host or null if the host was not specified in the URI.
Throws:
java.net.UnknownHostException - if no IP address for the host could be found.

getPort

public int getPort()
Returns the port.
Returns:
the port

getURI

public URI getURI()
Returns the URI.
Returns:
the URI

getPrincipal

public java.security.Principal getPrincipal()
Returns the security principal.
Returns:
the security principal. May be null.

export

public void export(Properties properties)
Helper to export this to a Properties instance.
Parameters:
properties - the properties to export to.

equals

public boolean equals(java.lang.Object other)
Checks whether this instance is equal to another.
Specified by:
equals in interface ConnectionRequestInfo
Overrides:
equals in class java.lang.Object
Parameters:
other - the object to compare
Returns:
true if the two instances are equal; otherwise false

hashCode

public int hashCode()
Returns a hashcode for this request info.
Specified by:
hashCode in interface ConnectionRequestInfo
Overrides:
hashCode in class java.lang.Object
Returns:
a hashcode for this request info.


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.