java.net
public class Proxy extends Object
Since: 1.5
Nested Class Summary | |
---|---|
static class | Proxy.Type
Represents the proxy type. |
Field Summary | |
---|---|
static Proxy | NO_PROXY |
Constructor Summary | |
---|---|
Proxy(Proxy.Type type, SocketAddress address)
Creates a new Proxy object.
|
Method Summary | |
---|---|
SocketAddress | address()
Returns the socket address for this proxy object.
|
boolean | equals(Object obj)
Compares the given object with this object.
|
int | hashCode()
Returns the hashcode for this Proxy object.
|
String | toString()
Returns a string representation of this Proxy object.
|
Proxy.Type | type()
Returns the of this proxy instance.
|
Proxy
object.
Parameters: type The type for this proxy address The address of this proxy
Returns: the socket address
Returns: true
if both objects or equals,
false
otherwise.
Proxy
object.
Returns: the hashcode
Proxy
object.
Returns: the string
Returns: the type
See Also: Type