public class Proxy extends Object
Proxy
is an immutable object.ProxySelector
Modifier and Type | Class | Description |
---|---|---|
static class |
Proxy.Type |
Represents the proxy type.
|
Modifier and Type | Field | Description |
---|---|---|
static Proxy |
NO_PROXY |
A proxy setting that represents a
DIRECT connection,
basically telling the protocol handler not to use any proxying. |
Constructor | Description |
---|---|
Proxy(Proxy.Type type,
SocketAddress sa) |
Creates an entry representing a PROXY connection.
|
Modifier and Type | Method | Description |
---|---|---|
SocketAddress |
address() |
Returns the socket address of the proxy, or
null if its a direct connection. |
boolean |
equals(Object obj) |
Compares this object against the specified object.
|
int |
hashCode() |
Returns a hashcode for this Proxy.
|
String |
toString() |
Constructs a string representation of this Proxy.
|
Proxy.Type |
type() |
Returns the proxy type.
|