| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_HOST
The default hostname for proxy connect = "localhost" |
| public static final int | DEFAULT_PORT
The default port for proxy connect = 3128 3128 is the default port for e.g. Squid |
| public static final ProxyType | DEFAULT_TYPE
The default proxy type (HTTP) |
| private String | |
| private String | |
| private int | |
| private ProxyType | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ProxyOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create options from JSON. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public int | |
| public ProxyType | |
| public String | |
| public ProxyOptions | |
| public ProxyOptions | Returns: a reference to this, so the API can be used fluentlythe proxy password password)Set proxy password. |
| public ProxyOptions | Returns: a reference to this, so the API can be used fluentlythe proxy port to connect to port)Set proxy port. |
| public ProxyOptions | |
| public ProxyOptions | Returns: a reference to this, so the API can be used fluentlythe proxy username username)Set proxy username. |
| public JsonObject | Returns: the JSON
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Convert to JSON |
| DEFAULT_HOST | back to summary |
|---|---|
| public static final String DEFAULT_HOST The default hostname for proxy connect = "localhost" | |
| DEFAULT_PORT | back to summary |
|---|---|
| public static final int DEFAULT_PORT The default port for proxy connect = 3128 3128 is the default port for e.g. Squid | |
| DEFAULT_TYPE | back to summary |
|---|---|
| public static final ProxyType DEFAULT_TYPE The default proxy type (HTTP) | |
| host | back to summary |
|---|---|
| private String host | |
| password | back to summary |
|---|---|
| private String password | |
| port | back to summary |
|---|---|
| private int port | |
| type | back to summary |
|---|---|
| private ProxyType type | |
| username | back to summary |
|---|---|
| private String username | |
| ProxyOptions | back to summary |
|---|---|
| public ProxyOptions() Default constructor. | |
| ProxyOptions | back to summary |
|---|---|
| public ProxyOptions(ProxyOptions other) Copy constructor.
| |
| ProxyOptions | back to summary |
|---|---|
| public ProxyOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Create options from JSON.
| |
| getHost | back to summary |
|---|---|
| public String getHost() Get proxy host.
| |
| getPassword | back to summary |
|---|---|
| public String getPassword() Get proxy password.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Get proxy port.
| |
| getType | back to summary |
|---|---|
| public ProxyType getType() Get proxy type. ProxyType can be HTTP, SOCKS4 and SOCKS5
| |
| getUsername | back to summary |
|---|---|
| public String getUsername() Get proxy username.
| |
| setHost | back to summary |
|---|---|
| public ProxyOptions setHost(String host) Set proxy host.
| |
| setPassword | back to summary |
|---|---|
| public ProxyOptions setPassword(String password) Set proxy password.
| |
| setPort | back to summary |
|---|---|
| public ProxyOptions setPort(int port) Set proxy port.
| |
| setType | back to summary |
|---|---|
| public ProxyOptions setType(ProxyType type) Set proxy type. ProxyType can be HTTP, SOCKS4 and SOCKS5
| |
| setUsername | back to summary |
|---|---|
| public ProxyOptions setUsername(String username) Set proxy username.
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. Convert to JSON
| |