public class ProxyOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProxyOptions.Type
The type of the proxy.
|
Constructor and Description |
---|
ProxyOptions(ProxyOptions.Type type,
InetSocketAddress address)
Creates ProxyOptions.
|
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddress() |
String |
getPassword() |
ProxyOptions.Type |
getType() |
String |
getUsername() |
ProxyOptions |
setCredentials(String username,
String password)
Set the proxy credentials.
|
public ProxyOptions(ProxyOptions.Type type, InetSocketAddress address)
type
- the proxy typeaddress
- the proxy address (ip and port number)public ProxyOptions setCredentials(String username, String password)
username
- proxy user namepassword
- proxy passwordpublic InetSocketAddress getAddress()
public ProxyOptions.Type getType()
public String getUsername()
public String getPassword()
Copyright © 2019 Microsoft Corporation. All rights reserved.