|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.Proxy
public class Proxy
Defines a proxy setting. This setting contains a type (https, socks, direct) and a socket address.
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Proxy NO_PROXY
Constructor Detail |
---|
public Proxy(Proxy.Type type, SocketAddress address)
Proxy
object.
type
- The type for this proxyaddress
- The address of this proxyMethod Detail |
---|
public SocketAddress address()
public Proxy.Type type()
Proxy.Type
public final boolean equals(Object obj)
equals
in class Object
obj
- the Object to compare to
true
if both objects or equals,
false
otherwise.Object.hashCode()
public final int hashCode()
Proxy
object.
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public String toString()
Proxy
object.
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |