org.exolab.jms.net.rmi
Class RMIRequestInfo

java.lang.Object
  |
  +--org.exolab.jms.net.connector.URIRequestInfo
        |
        +--org.exolab.jms.net.rmi.RMIRequestInfo
All Implemented Interfaces:
ConnectionRequestInfo

public class RMIRequestInfo
extends URIRequestInfo

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

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

Field Summary
protected static java.lang.String EMBED_REGISTRY
          Connection property name to indicate the whether the registry is embedded or not.
 
Constructor Summary
RMIRequestInfo(URI uri)
          Construct a new RMIRequestInfo.
RMIRequestInfo(URI uri, Properties properties)
          Construct a new RMIRequestInfo.
 
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.
 boolean getEmbedRegistry()
          Determines if the registry is embedded or external.
 void setEmbedRegistry(boolean embedded)
          Sets if the registry is embedded or external.
 
Methods inherited from class org.exolab.jms.net.connector.URIRequestInfo
getHost, getHostAddress, getPort, getPrincipal, getURI, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMBED_REGISTRY

protected static final java.lang.String EMBED_REGISTRY
Connection property name to indicate the whether the registry is embedded or not.
Constructor Detail

RMIRequestInfo

public RMIRequestInfo(URI uri)
Construct a new RMIRequestInfo.
Parameters:
uri - the URI

RMIRequestInfo

public RMIRequestInfo(URI uri,
                      Properties properties)
               throws ResourceException
Construct a new RMIRequestInfo.
Parameters:
uri - the URI
properties - the properties to populate this from
Throws:
ResourceException - if any of the properties are invalid
Method Detail

setEmbedRegistry

public void setEmbedRegistry(boolean embedded)
Sets if the registry is embedded or external.
Parameters:
embedded - if true the registry is embedded, otherwise its external

getEmbedRegistry

public boolean getEmbedRegistry()
Determines if the registry is embedded or external.
Returns:
true the registry is embedded, otherwise its external

export

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

equals

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


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