public final class ProxyHost extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHost() |
String |
getHostWithPort() |
String |
getPassword() |
int |
getPort() |
String |
getRawHost() |
String |
getUsername() |
int |
hashCode() |
static ProxyHost |
of(String host,
int port)
Creates a new ProxyHost configuration
|
static ProxyHost |
of(String host,
int port,
String username,
String password)
Creates a new ProxyHost configuration with credentials
|
public ProxyHost(String host, int port)
public static ProxyHost of(String host, int port)
host
- the proxy host (ex. http://myproxy)port
- the proxy port (ex. 8080)public static ProxyHost of(String host, int port, String username, String password)
host
- the proxy host (ex. http://myproxy)port
- the proxy port (ex. 8080)username
- the username for proxy authenticationpassword
- the password for proxy authenticationpublic String getHost()
public String getRawHost()
public int getPort()
public String getUsername()
public String getPassword()
public String getHostWithPort()
Copyright © 2017. All rights reserved.