org.jboss.remoting
Class InvokerLocator

java.lang.Object
  extended byorg.jboss.remoting.InvokerLocator
All Implemented Interfaces:
java.io.Serializable

public class InvokerLocator
extends java.lang.Object
implements java.io.Serializable

InvokerLocator is an object that indentifies a specific Invoker on the network, via a unique locator URI. The locator URI is in the format:

protocol://host[:port][/path[?param=value¶m2=value2]]

For example, a http based locator might be:

http://192.168.10.1:8081

An example Socket based locator might be:

socket://192.168.10.1:9999

An example RMI based locator might be:

rmi://localhost

NOTE: the hostname will automatically be resolved to the outside IP address of the local machine if localhost or 127.0.0.1 is used as the hostname in the URI. If it cannot be determined or resolved, it will use what was passed.

See Also:
Serialized Form

Field Summary
static java.lang.String BYVALUE
          Constant to define the param name to be used when defining if marshalling should be by value, which means will be remote client invoker instead of using local client invoker.
static java.lang.String DATATYPE
          Constant to define the param name to be used when defining the data type.
static java.lang.String DATATYPE_CASED
           
protected  java.lang.String host
           
static java.lang.String LOADER_PORT
          Constant to define what port the marshalling loader port resides on.
static java.lang.String MARSHALLER
          Constant to define the param name to be used when defining the marshaller fully qualified classname
protected  java.util.Map parameters
           
protected  java.lang.String path
           
protected  int port
           
protected  java.lang.String protocol
           
static java.lang.String UNMARSHALLER
          Constant to define the param name to be used when defining the unmarshaller fully qualified classname
 
Constructor Summary
InvokerLocator(java.lang.String uri)
           
InvokerLocator(java.lang.String protocol, java.lang.String host, int port, java.lang.String path, java.util.Map parameters)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getHost()
           
 java.lang.String getLocatorURI()
          return the locator URI, in the format:
 java.lang.String getOriginalURI()
           
 java.util.Map getParameters()
           
 java.lang.String getPath()
           
 int getPort()
           
 java.lang.String getProtocol()
           
 int hashCode()
           
 ClientInvoker (src) narrow()
          narrow this invoker to a specific RemoteClientInvoker instance
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

protocol

protected java.lang.String protocol

host

protected java.lang.String host

port

protected int port

path

protected java.lang.String path

parameters

protected java.util.Map parameters

DATATYPE

public static final java.lang.String DATATYPE
Constant to define the param name to be used when defining the data type.

See Also:
Constant Field Values (src)

DATATYPE_CASED

public static final java.lang.String DATATYPE_CASED
See Also:
Constant Field Values (src)

MARSHALLER

public static final java.lang.String MARSHALLER
Constant to define the param name to be used when defining the marshaller fully qualified classname

See Also:
Constant Field Values (src)

UNMARSHALLER

public static final java.lang.String UNMARSHALLER
Constant to define the param name to be used when defining the unmarshaller fully qualified classname

See Also:
Constant Field Values (src)

LOADER_PORT

public static final java.lang.String LOADER_PORT
Constant to define what port the marshalling loader port resides on.

See Also:
Constant Field Values (src)

BYVALUE

public static final java.lang.String BYVALUE
Constant to define the param name to be used when defining if marshalling should be by value, which means will be remote client invoker instead of using local client invoker.

See Also:
Constant Field Values (src)
Constructor Detail

InvokerLocator

public InvokerLocator(java.lang.String uri)
               throws java.net.MalformedURLException

InvokerLocator

public InvokerLocator(java.lang.String protocol,
                      java.lang.String host,
                      int port,
                      java.lang.String path,
                      java.util.Map parameters)
Method Detail

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

getLocatorURI

public java.lang.String getLocatorURI()
return the locator URI, in the format:

protocol://host[:port][/path[?param=value¶m2=value2]]

Returns:

getProtocol

public java.lang.String getProtocol()

getHost

public java.lang.String getHost()

getPort

public int getPort()

getPath

public java.lang.String getPath()

getParameters

public java.util.Map getParameters()

toString

public java.lang.String toString()

getOriginalURI

public java.lang.String getOriginalURI()

narrow

public ClientInvoker (src)  narrow()
                     throws java.lang.Exception
narrow this invoker to a specific RemoteClientInvoker instance

Returns:
Throws:
java.lang.Exception