Example usage for android.net ProxyInfo getPort

List of usage examples for android.net ProxyInfo getPort

Introduction

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

Prototype

public int getPort() 

Source Link

Document

When configured to use a Direct Proxy this returns the port of the proxy

Usage

From source file:android.net.ProxyInfo.java

/**
 * @hide//w  ww .j ava2  s.com
 */
public ProxyInfo(ProxyInfo source) {
    if (source != null) {
        mHost = source.getHost();
        mPort = source.getPort();
        mPacFileUrl = source.mPacFileUrl;
        mExclusionList = source.getExclusionListAsString();
        mParsedExclusionList = source.mParsedExclusionList;
    } else {
        mPacFileUrl = Uri.EMPTY;
    }
}