| java.lang.Object | |
| ↳ | android.net.ProxyInfo |
Describes a proxy configuration.
Proxy configurations are already integrated within the java.net and
Apache HTTP stack. So URLConnection and Apache's HttpClient will use
them automatically.
Other HTTP stacks will need to obtain the proxy info from
PROXY_CHANGE_ACTION broadcast as the extra EXTRA_PROXY_INFO.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
ProxyInfo object that points at a Direct proxy
on the specified host and port.
| |||||||||||
Constructs a
ProxyInfo object that points at a Direct proxy
on the specified host and port.
| |||||||||||
Construct a
ProxyInfo that will download and run the PAC script
at the specified URL.
| |||||||||||
Compares this instance with the specified object and indicates if they
are equal.
| |||||||||||
When configured to use a Direct Proxy this returns the list
of hosts for which the proxy is ignored.
| |||||||||||
When configured to use a Direct Proxy this returns the host
of the proxy.
| |||||||||||
Returns the URL of the current PAC script or null if there is
no PAC script.
| |||||||||||
When configured to use a Direct Proxy this returns the port
of the proxy
| |||||||||||
Returns an integer hash code for this object.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Constructs a ProxyInfo object that points at a Direct proxy
on the specified host and port.
Constructs a ProxyInfo object that points at a Direct proxy
on the specified host and port.
The proxy will not be used to access any host in exclusion list, exclList.
| exclList | Hosts to exclude using the proxy on connections for. These hosts can use wildcards such as *.example.com. |
|---|
Construct a ProxyInfo that will download and run the PAC script
at the specified URL.
Compares this instance with the specified object and indicates if they
are equal. In order to be equal, o must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true only if this ==
o. See Writing a correct
equals method
if you intend implementing your own equals method.
The general contract for the equals and hashCode() methods is that if equals returns true for
any two objects, then hashCode() must return the same value for
these objects. This means that subclasses of Object usually
override either both methods or neither of them.
| o | the object to compare this instance with. |
|---|
true if the specified object is equal to this Object; false otherwise.When configured to use a Direct Proxy this returns the list of hosts for which the proxy is ignored.
When configured to use a Direct Proxy this returns the host of the proxy.
Returns the URL of the current PAC script or null if there is no PAC script.
When configured to use a Direct Proxy this returns the port of the proxy
Returns an integer hash code for this object. By contract, any two
objects for which equals(Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.