Constructor and Description |
---|
WebProxy(String host)
Initializes a new instance to use specified proxy with default port 80.
|
WebProxy(String host,
int port)
Initializes a new instance to use specified proxy details.
|
WebProxy(String host,
int port,
WebProxyCredentials credentials)
Initializes a new instance to use specified proxy details.
|
WebProxy(String host,
WebProxyCredentials credentials)
Initializes a new instance to use specified proxy with default port 80.
|
Modifier and Type | Method and Description |
---|---|
WebProxyCredentials |
getCredentials()
Gets the Proxy Credentials.
|
String |
getHost()
Gets the Proxy Host.
|
int |
getPort()
Gets the Proxy Port.
|
boolean |
hasCredentials() |
public WebProxy(String host, int port)
host
- proxy host.port
- proxy port.public WebProxy(String host)
host
- proxy host.public WebProxy(String host, WebProxyCredentials credentials)
host
- proxy host.credentials
- the credential to use for the proxy.public WebProxy(String host, int port, WebProxyCredentials credentials)
host
- proxy host.port
- proxy port.credentials
- the credential to use for the proxy.public int getPort()
public boolean hasCredentials()
public WebProxyCredentials getCredentials()
Copyright © 2012–2015 Microsoft. All rights reserved.