|
|||||||||||
| 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 SOAP based locator might be:
soap://192.168.10.1:8081/axis/invoker
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 | |
protected String |
host
|
protected Map |
parameters
|
protected String |
path
|
protected int |
port
|
protected String |
protocol
|
| 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: |
Map |
getParameters()
|
String |
getPath()
|
int |
getPort()
|
String |
getProtocol()
|
int |
hashCode()
|
static void |
main(String[] args)
testing |
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
| 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 ClientInvoker narrow()
throws Exception
Exceptionpublic static void main(String[] args)
args -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||