public class RestProxy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_HOST |
static java.lang.String |
ATTR_PORT |
static java.lang.String |
ELEM_PROXY |
| Constructor and Description |
|---|
RestProxy(org.w3c.dom.Node description)
Instantiate this proxy from the serialized info
|
RestProxy(java.lang.String host,
int port)
Instantiate this proxy configuration.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Node |
describe()
Describe this proxy to enable it to be persisted by the Connection
metadata
|
java.lang.String |
getHost()
Get the host name of this proxy server.
|
int |
getPort()
Get the port on which the proxy is accepting requests
|
public static final java.lang.String ELEM_PROXY
public static final java.lang.String ATTR_HOST
public static final java.lang.String ATTR_PORT
public RestProxy(java.lang.String host,
int port)
host - The hostname of the proxy serverport - The port on which the proxy server is accepting requestspublic RestProxy(org.w3c.dom.Node description)
throws ConnectionException
description - The Node describing this proxy{@link - ConnectionException} if an error occured reading
the description to initialize the proxy.ConnectionExceptionpublic java.lang.String getHost()
public int getPort()
public org.w3c.dom.Node describe()
throws ConnectionException
Node describing this Proxy.{@link - ConnectionException} if the description cannot be
provided.ConnectionException