Home | History | Annotate | Download | only in net

Lines Matching defs:Proxy

29  * This class represents a proxy setting, typically a type (http, socks) and
31 * A {@code Proxy} is an immutable object.
38 public class Proxy {
41 * Represents the proxy type.
47 * Represents a direct connection, or the absence of a proxy.
51 * Represents proxy for high level protocols such as HTTP or FTP.
55 * Represents a SOCKS (V4 or V5) proxy.
64 * A proxy setting that represents a {@code DIRECT} connection,
67 * proxy settings (like SOCKS):
69 * {@code Socket s = new Socket(Proxy.NO_PROXY);}
72 public final static Proxy NO_PROXY = new Proxy();
74 // Creates the proxy that represents a {@code DIRECT} connection.
75 private Proxy() {
81 * Creates an entry representing a PROXY connection.
85 * Use the {@code Proxy.NO_PROXY} constant
88 * @param type the {@code Type} of the proxy
89 * @param sa the {@code SocketAddress} for that proxy
93 public Proxy(Type type, SocketAddress sa) {
101 * Returns the proxy type.
103 * @return a Type representing the proxy type
110 * Returns the socket address of the proxy, or
114 * point of the proxy
121 * Constructs a string representation of this Proxy.
137 * not {@code null} and it represents the same proxy as
140 * Two instances of {@code Proxy} represent the same
149 if (obj == null || !(obj instanceof Proxy))
151 Proxy p = (Proxy) obj;
162 * Returns a hashcode for this Proxy.
164 * @return a hash code value for this Proxy.