API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. Proxy View Source
Author(s)
Yingxian Wang
Jean-Christophe Collet
Since
1.5
Version
1.3, 08/09/03
Serial
Hierarchy
 Object
      Proxy
Implements
Subclasses
Description
public class Proxy
  This class represents a proxy setting, typically a type (http, socks) and a socket address.
See also:    ProxySelector
Constructors
private Proxy ()
public Proxy (Type type, SocketAddress sa)
  Creates an entry representing a PROXY connection.
Methods
Hide/Show inherited methods
public SocketAddress address ()
  Returns the socket address of the proxy, or null if its a direct connection.
publicfinal boolean equals (Object obj)
  Compares this object against the specified object.
publicfinal int hashCode ()
  Returns a hashcode for this Proxy.
public String toString ()
  Constructs a string representation of this Proxy.
public Type type ()
  Returns the proxy type.
Fields
Hide/Show inherited fields
publicfinalstatic Proxy NO_PROXY
  A proxy setting that represents a DIRECT connection, basically telling the protocol handler not to use any proxying.
Nested Classes
  Proxy.Type
Represents the proxy type.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar