public class Proxy
extends java.lang.Object
Constructor and Description |
---|
Proxy(org.w3c.dom.Node description)
Instantiate this proxy from the serialized info
|
Proxy(java.lang.String host,
int port)
Instantiate this proxy configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
Enforce poxy authentication to happnen at runtime.
|
protected 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
|
void |
setAuthenticationScheme(AuthenticationScheme authScheme)
Set the
AuthenticationScheme on this proxy needed for
authentication. |
public Proxy(java.lang.String host, int port)
host
- The hostname of the proxy serverport
- The port on which the proxy server is accepting requestspublic Proxy(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.ConnectionException
public void setAuthenticationScheme(AuthenticationScheme authScheme)
AuthenticationScheme
on this proxy needed for
authentication.authScheme
- The AuthenticationScheme
used by this proxy
for authentication.public void authenticate() throws ConnectionException
{@link
- ConnectionException} if there was a failure or error
authenticating against the proxy.ConnectionException
public java.lang.String getHost()
public int getPort()
protected org.w3c.dom.Node describe() throws ConnectionException
Node
describing this Proxy.{@link
- ConnectionException} if the description cannot be
provided.ConnectionException