Example usage for android.net Proxy PROXY_VALID

List of usage examples for android.net Proxy PROXY_VALID

Introduction

In this page you can find the example usage for android.net Proxy PROXY_VALID.

Prototype

int PROXY_VALID

To view the source code for android.net Proxy PROXY_VALID.

Click Source Link

Usage

From source file:android.net.ProxyInfo.java

/**
 * @hide/* w ww.  jav  a  2s. com*/
 */
public boolean isValid() {
    if (!Uri.EMPTY.equals(mPacFileUrl))
        return true;
    return Proxy.PROXY_VALID == Proxy.validate(mHost == null ? "" : mHost,
            mPort == 0 ? "" : Integer.toString(mPort), mExclusionList == null ? "" : mExclusionList);
}