to top
AFEX APIs
public class

ProxyProperties

extends Object
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.ProxyProperties

This class was deprecated in API level 5.
in Android Lollipop

Class Overview

A container class for the http proxy info

Summary

Constants
String LOCAL_EXCL_LIST
String LOCAL_HOST
int LOCAL_PORT
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
ProxyProperties(String host, int port, String exclList)
ProxyProperties(String pacFileUrl)
ProxyProperties(String pacFileUrl, int localProxyPort)
Only used in PacManager after local proxy is bound.
ProxyProperties(ProxyProperties source)
Public Methods
boolean equals(Object o)
String getExclusionList()
Returns comma separeated exclusion list.
String getHost()
Returns defined host name.
String getPacFileUrl()
Returns defined PACFile url.
int getPort()
Returns defined port number.
InetSocketAddress getSocketAddress()
Returns generated internet socket address.
boolean isExcluded(String url)
Queries given url if it is excluded or not.
boolean isValid()
Queries if this ProxyProperties is valid one or not.
Proxy makeProxy()
Converts ProxyProperties as a java.net.Proxy.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final String LOCAL_EXCL_LIST

Added in API level 2

Constant Value: ""

public static final String LOCAL_HOST

Added in API level 2

Constant Value: "localhost"

public static final int LOCAL_PORT

Added in API level 2

Constant Value: -1 (0xffffffff)

Public Constructors

public ProxyProperties (String host, int port, String exclList)

Added in API level 2

Parameters
exclList String: Comma separated exclusion list

public ProxyProperties (String pacFileUrl)

Added in API level 2

public ProxyProperties (String pacFileUrl, int localProxyPort)

Added in API level 2

Only used in PacManager after local proxy is bound.

public ProxyProperties (ProxyProperties source)

Added in API level 2

Public Methods

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public String getExclusionList ()

Added in API level 2

Returns comma separeated exclusion list.

Returns
String comma separeted String if exclusion list was set else null

public String getHost ()

Added in API level 2

Returns defined host name.

Returns
String String if host was set else null

public String getPacFileUrl ()

Added in API level 2

Returns defined PACFile url.

Returns
String String if PACFileUrl was set else null

public int getPort ()

Added in API level 2

Returns defined port number.

Returns
int int if port number was set else null

public InetSocketAddress getSocketAddress ()

Added in API level 2

Returns generated internet socket address.

Returns
InetSocketAddress InetSocketAddress if host address and port number was set else null

public boolean isExcluded (String url)

Added in API level 2

Queries given url if it is excluded or not.

Parameters
url String: Internet address
Returns
boolean true if it is excluded else false

public boolean isValid ()

Added in API level 2

Queries if this ProxyProperties is valid one or not.

Returns
boolean true if it is valide else false

public Proxy makeProxy ()

Added in API level 2

Converts ProxyProperties as a java.net.Proxy.

Returns
Proxy java.net.Proxy

public String toString ()

Returns
String