Package org.openstack4j.core.transport
Class ProxyHost
- java.lang.Object
-
- org.openstack4j.core.transport.ProxyHost
-
public final class ProxyHost extends Object
Proxy host configuration- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetHost()StringgetHostWithPort()StringgetPassword()intgetPort()StringgetRawHost()StringgetUsername()inthashCode()static ProxyHostof(String host, int port)Creates a new ProxyHost configurationstatic ProxyHostof(String host, int port, String username, String password)Creates a new ProxyHost configuration with credentials
-
-
-
Constructor Detail
-
ProxyHost
public ProxyHost(String host, int port)
-
-
Method Detail
-
of
public static ProxyHost of(String host, int port)
Creates a new ProxyHost configuration- Parameters:
host- the proxy host (ex. http://myproxy)port- the proxy port (ex. 8080)- Returns:
- ProxyHost
-
of
public static ProxyHost of(String host, int port, String username, String password)
Creates a new ProxyHost configuration with credentials- Parameters:
host- the proxy host (ex. http://myproxy)port- the proxy port (ex. 8080)username- the username for proxy authenticationpassword- the password for proxy authentication- Returns:
- ProxyHost
-
getHost
public String getHost()
-
getRawHost
public String getRawHost()
-
getPort
public int getPort()
-
getUsername
public String getUsername()
-
getPassword
public String getPassword()
-
getHostWithPort
public String getHostWithPort()
-
-