Example usage for android.net ProxyInfo getPacFileUrl

List of usage examples for android.net ProxyInfo getPacFileUrl

Introduction

In this page you can find the example usage for android.net ProxyInfo getPacFileUrl.

Prototype

public Uri getPacFileUrl() 

Source Link

Document

Returns the URL of the current PAC script or null if there is no PAC script.

Usage

From source file:android.net.ProxyInfo.java

@Override
public boolean equals(Object o) {
    if (!(o instanceof ProxyInfo))
        return false;
    ProxyInfo p = (ProxyInfo) o;
    // If PAC URL is present in either then they must be equal.
    // Other parameters will only be for fall back.
    if (!Uri.EMPTY.equals(mPacFileUrl)) {
        return mPacFileUrl.equals(p.getPacFileUrl()) && mPort == p.mPort;
    }//from  w  w w .j av  a 2  s  .c  om
    if (!Uri.EMPTY.equals(p.mPacFileUrl)) {
        return false;
    }
    if (mExclusionList != null && !mExclusionList.equals(p.getExclusionListAsString())) {
        return false;
    }
    if (mHost != null && p.getHost() != null && mHost.equals(p.getHost()) == false) {
        return false;
    }
    if (mHost != null && p.mHost == null)
        return false;
    if (mHost == null && p.mHost != null)
        return false;
    if (mPort != p.mPort)
        return false;
    return true;
}