org.nuxeo.runtime.remoting
Class LocatorHelper
java.lang.Object
org.nuxeo.runtime.remoting.LocatorHelper
public class LocatorHelper
- extends java.lang.Object
Helps to create locators for nuxeo runtime nodes.
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
getLocator
public static InvokerLocator getLocator(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> parameters)
getLocator
public static InvokerLocator getLocator(java.lang.String protocol,
java.lang.String host,
int port)
getLocator
public static InvokerLocator getLocator(java.lang.String host,
int port)
getLocator
public static InvokerLocator getLocator(java.lang.String host)
parse
public static InvokerLocator parse(java.lang.String uri)
throws java.net.MalformedURLException
- Constructs the object used to identify a remoting server via simple uri
format string (e.g. socket://myhost:7000).
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().
- Throws:
java.net.MalformedURLException
resolveHost
public static java.lang.String resolveHost(java.lang.String host)
fixRemoteAddress
public static java.lang.String fixRemoteAddress(java.lang.String address)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.