public class HttpProxyInfo
extends java.lang.Object
A helper class to get HTTP proxy information for Presto.
Constructor and Description |
---|
HttpProxyInfo() |
Modifier and Type | Method and Description |
---|---|
AuthScope |
getAuthScope()
Returns the authentication scope, if this has been set, for this
proxy server.
|
Credentials |
getCredentials()
Returns the user name and password, if any, that have been configured for
this proxy server in Presto.
|
java.lang.String |
getCredentialsType()
Returns the type of authentication (requirements for credentials) used by this proxy server.
|
java.lang.String |
getHost()
Returns the host for this proxy server, if any, or null if this is not
configured.
|
java.lang.String |
getNTDomain()
Returns the Windows domain for this proxy server, if the authentication type is NTLM.
|
java.lang.String |
getPassword()
Returns the password for credentials for this proxy server, if any,
or null if this is not configured.
|
int |
getPort()
Returns the port number for this proxy server, if any.
|
java.lang.String |
getUsername()
Returns the user name, if any, in credentials for this proxy server.
|
boolean |
isHostInfoSet()
Determines if host information has been configured in Presto for this proxy server.
|
boolean |
isUseProxy()
Determines if a proxy server has been configured and enabled for Presto.
|
boolean |
isUserInfoSet()
Determines if user name and password, at a minimum, have been configured in
Presto for this proxy server.
|
public java.lang.String getCredentialsType()
public java.lang.String getNTDomain()
public java.lang.String getHost()
public java.lang.String getPassword()
public int getPort()
public boolean isUseProxy()
public java.lang.String getUsername()
public AuthScope getAuthScope()
public boolean isHostInfoSet()
public boolean isUserInfoSet()
public Credentials getCredentials()