public class LocatorHelper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
Modifier and Type | Method and Description |
---|---|
static String |
fixRemoteAddress(String address) |
static InvokerLocator |
getLocator(String host) |
static InvokerLocator |
getLocator(String host,
int port) |
static InvokerLocator |
getLocator(String protocol,
String host,
int port) |
static InvokerLocator |
getLocator(String protocol,
String host,
int port,
String path,
Map<String,String> parameters) |
static InvokerLocator |
parse(String uri)
Constructs the object used to identify a remoting server via simple uri
format string (e.g.
|
static String |
resolveHost(String host) |
public static final int DEFAULT_PORT
public static InvokerLocator getLocator(String protocol, String host, int port, String path, Map<String,String> parameters)
public static InvokerLocator getLocator(String protocol, String host, int port)
public static InvokerLocator getLocator(String host, int port)
public static InvokerLocator getLocator(String host)
public static InvokerLocator parse(String uri) throws MalformedURLException
Note: the uri passed may not always be the one returned via call to getLocatorURI() as may need to change if port not specified, host is 0.0.0.0, etc. If need original uri that is passed to this constructor, need to call getOriginalURI().
MalformedURLException
Copyright © 2013 Nuxeo SA. All Rights Reserved.