|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.InvokerLocator
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.
Field Summary | |
static 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 String |
DATATYPE
Constant to define the param name to be used when defining the data type. |
static String |
DATATYPE_CASED
|
protected String |
host
|
static String |
LOADER_PORT
Constant to define what port the marshalling loader port resides on. |
static String |
MARSHALLER
Constant to define the param name to be used when defining the marshaller fully qualified classname |
protected Map |
parameters
|
protected String |
path
|
protected int |
port
|
protected String |
protocol
|
static String |
UNMARSHALLER
Constant to define the param name to be used when defining the unmarshaller fully qualified classname |
Constructor Summary | |
InvokerLocator(String uri)
|
|
InvokerLocator(String protocol,
String host,
int port,
String path,
Map parameters)
|
Method Summary | |
boolean |
equals(Object obj)
|
String |
getHost()
|
String |
getLocatorURI()
return the locator URI, in the format: |
String |
getOriginalURI()
|
Map |
getParameters()
|
String |
getPath()
|
int |
getPort()
|
String |
getProtocol()
|
int |
hashCode()
|
ClientInvoker |
narrow()
narrow this invoker to a specific RemoteClientInvoker instance |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String protocol
protected String host
protected int port
protected String path
protected Map parameters
public static final String DATATYPE
public static final String DATATYPE_CASED
public static final String MARSHALLER
public static final String UNMARSHALLER
public static final String LOADER_PORT
public static final String BYVALUE
Constructor Detail |
public InvokerLocator(String uri) throws MalformedURLException
public InvokerLocator(String protocol, String host, int port, String path, Map parameters)
Method Detail |
public int hashCode()
public boolean equals(Object obj)
public String getLocatorURI()
protocol://host[:port][/path[?param=value¶m2=value2]]
public String getProtocol()
public String getHost()
public int getPort()
public String getPath()
public Map getParameters()
public String toString()
public String getOriginalURI()
public ClientInvoker narrow() throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |