|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.InvokerLocator
public class 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: If no hostname is given (e.g., "socket://:5555"), then the hostname will automatically be resolved to the outside IP address of the local machine. If the given hostname is 0.0.0.0 and the system property "jboss.bind.address" is set, then the hostname will be replaced by the value associated with 'jboss.bind.address".
Field Summary | |
---|---|
static java.lang.String |
ANY
Indicates should address binding to all network interfaces (i.e. |
static java.lang.String |
BIND_BY_HOST
Public key to use when want to specify that locator look up local address by IP or host name. |
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 using local client invoker with cloning of payload value. |
static java.lang.String |
CLIENT_LEASE
Constant to define if client should try to automatically establish a lease with the server. |
static java.lang.String |
CLIENT_LEASE_PERIOD
Constant to define what the client lease period should be in the case that server side leasing is turned on. |
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
|
static java.lang.String |
FORCE_REMOTE
Constant to define the param name to be used when defining if marshalling should use remote client invoker instead of using local client invoker (even though both client and server invokers are within same JVM). |
protected java.lang.String |
host
|
static java.lang.String |
LEGACY_PARSING
Constant to define if InvokerLocator should use the old (ad hoc) parsing algorithm instead of the new, URI based, parsing algorithm. |
protected static java.lang.Boolean |
legacyParsingFlag
|
static java.lang.String |
LOADER_PORT
Constant to define what port the marshalling loader port resides on. |
protected static org.jboss.logging.Logger |
log
|
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
|
protected java.lang.String |
query
|
static java.lang.String |
SERIALIZATIONTYPE
Constant to define the param name to be used when defining the serialization type. |
static java.lang.String |
SERIALIZATIONTYPE_CASED
|
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)
Constructs the object used to identify a remoting server via simple uri format string (e.g. |
|
InvokerLocator(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String path,
java.util.Map parameters)
Constructs the object used to identify a remoting server. |
Method Summary | |
---|---|
protected static java.lang.String |
decodePercent(java.lang.String s)
|
protected static java.lang.String |
encodePercent(java.lang.String s)
|
boolean |
equals(java.lang.Object obj)
Compares to see if Object passed is of type InvokerLocator and it's internal locator uri hashcode is same as this one. |
java.lang.String |
findSerializationType()
|
java.lang.String |
getHost()
|
java.lang.String |
getLocatorURI()
return the locator URI, in the format: |
java.lang.String |
getOriginalURI()
Gets the original uri passed to constructor (if there was one). |
java.util.Map |
getParameters()
|
java.lang.String |
getPath()
|
int |
getPort()
|
java.lang.String |
getProtocol()
|
static boolean |
getUseLegacyParsing()
|
int |
hashCode()
|
boolean |
isSameEndpoint(InvokerLocator compareMe)
Compares to see if InvokerLocator passed represents the same physical remoting server endpoint as this one. |
ClientInvoker |
narrow()
narrow this invoker to a specific RemoteClientInvoker instance |
static void |
setUseLegacyParsing(boolean flag)
|
java.lang.String |
toString()
|
static InvokerLocator |
validateLocator(InvokerLocator locator)
InvokerLocator leaves address 0.0.0.0 unchanged. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.jboss.logging.Logger log
protected static java.lang.Boolean legacyParsingFlag
protected java.lang.String protocol
protected java.lang.String host
protected int port
protected java.lang.String path
protected java.lang.String query
protected java.util.Map parameters
public static final java.lang.String ANY
public static final java.lang.String BIND_BY_HOST
public static final java.lang.String DATATYPE
public static final java.lang.String DATATYPE_CASED
public static final java.lang.String SERIALIZATIONTYPE
public static final java.lang.String SERIALIZATIONTYPE_CASED
public static final java.lang.String MARSHALLER
public static final java.lang.String UNMARSHALLER
public static final java.lang.String LOADER_PORT
public static final java.lang.String BYVALUE
public static final java.lang.String FORCE_REMOTE
public static final java.lang.String CLIENT_LEASE
public static final java.lang.String CLIENT_LEASE_PERIOD
public static final java.lang.String LEGACY_PARSING
Constructor Detail |
---|
public InvokerLocator(java.lang.String uri) throws java.net.MalformedURLException
uri
-
java.net.MalformedURLException
public InvokerLocator(java.lang.String protocol, java.lang.String host, int port, java.lang.String path, java.util.Map parameters)
protocol
- host
- port
- path
- parameters
- Method Detail |
---|
public static boolean getUseLegacyParsing()
public static void setUseLegacyParsing(boolean flag)
public static InvokerLocator validateLocator(InvokerLocator locator) throws java.net.MalformedURLException
java.net.MalformedURLException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
public boolean isSameEndpoint(InvokerLocator compareMe)
compareMe
-
public java.lang.String getLocatorURI()
protocol://host[:port][/path[?param=value¶m2=value2]] Note, this may not be the same as the original uri passed as parameter to the constructor.
public java.lang.String getProtocol()
public java.lang.String getHost()
public int getPort()
public java.lang.String getPath()
public java.util.Map getParameters()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getOriginalURI()
public ClientInvoker narrow() throws java.lang.Exception
java.lang.Exception
public java.lang.String findSerializationType()
protected static java.lang.String encodePercent(java.lang.String s)
protected static java.lang.String decodePercent(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |