public class ProxySpecification extends Object
| Constructor and Description |
|---|
ProxySpecification(String host,
int port,
String scheme)
Creates a ProxySpecification with the supplied hostname, port and scheme.
|
| Modifier and Type | Method and Description |
|---|---|
ProxySpecification |
and()
Syntactic sugar.
|
boolean |
equals(Object o) |
String |
getHost() |
int |
getPort() |
String |
getScheme() |
int |
hashCode() |
static ProxySpecification |
host(String host)
Specify the hostname for of the proxy.
|
static ProxySpecification |
port(int port)
Specify the port for of the proxy.
|
String |
toString() |
ProxySpecification |
withHost(String host)
Specify the hostname of the proxy.
|
ProxySpecification |
withPort(int port)
Specify the port of the proxy.
|
ProxySpecification |
withScheme(String scheme)
Specify the scheme of the proxy.
|
public static ProxySpecification host(String host)
host - The hostnamepublic static ProxySpecification port(int port)
port - The port on localhost to connect to.public ProxySpecification withPort(int port)
port - The port of the proxy.public ProxySpecification withHost(String host)
host - The hostname of the proxy.public ProxySpecification withScheme(String scheme)
scheme - The scheme of the proxy.public ProxySpecification and()
public String getHost()
public int getPort()
public String getScheme()
Copyright © 2010–2014. All rights reserved.