public static final class HttpConfiguration.ProxyConfiguration
extends java.lang.Object
Constructor and Description |
---|
ProxyConfiguration(java.lang.String host,
int port,
java.lang.String schema)
Constructor.
|
ProxyConfiguration(java.lang.String host,
int port,
java.lang.String schema,
java.lang.String username,
java.lang.String password)
Constructor including Basic Authentication credentials.
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.auth.UsernamePasswordCredentials |
getBasicAuthCredentials() |
java.lang.String |
getHost() |
int |
getPort() |
java.lang.String |
getSchema() |
public ProxyConfiguration(java.lang.String host, int port, java.lang.String schema)
host
- is the proxy hostname.port
- is the proxy port.schema
- is the proxy schema.public ProxyConfiguration(java.lang.String host, int port, java.lang.String schema, java.lang.String username, java.lang.String password)
host
- is the proxy hostname.port
- is the proxy port.schema
- is the proxy schema.username
- is the Basic Authentication username.password
- is the Basic Authentication password.public java.lang.String getHost()
public int getPort()
public java.lang.String getSchema()
public org.apache.http.auth.UsernamePasswordCredentials getBasicAuthCredentials()
null
.