public class HttpProxyOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpProxyOptions.HttpProxyAuthorizationType
what kind of authentication, if any, to use when connecting to a proxy server
|
static class |
HttpProxyOptions.HttpProxyConnectionType
What kind of proxy connection to establish
|
| Constructor and Description |
|---|
HttpProxyOptions()
Creates a new set of proxy options
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorizationPassword() |
HttpProxyOptions.HttpProxyAuthorizationType |
getAuthorizationType() |
String |
getAuthorizationUsername() |
HttpProxyOptions.HttpProxyConnectionType |
getConnectionType() |
String |
getHost() |
int |
getPort() |
TlsContext |
getTlsContext() |
void |
setAuthorizationPassword(String password)
Sets the password to use for authorization; only applicable to basic authentication
|
void |
setAuthorizationType(HttpProxyOptions.HttpProxyAuthorizationType authorizationType)
Sets the proxy authorization type
|
void |
setAuthorizationUsername(String username)
Sets the username to use for authorization; only applicable to basic authentication
|
void |
setConnectionType(HttpProxyOptions.HttpProxyConnectionType connectionType)
Sets the proxy connection type
|
void |
setHost(String host)
Sets the proxy host to connect through
|
void |
setPort(int port)
Sets the proxy port to connect through
|
void |
setTlsContext(TlsContext tlsContext)
Sets the tls context for the proxy connection
|
public HttpProxyOptions()
CrtRuntimeException - If the system is unable to allocate space for a http proxy options instancepublic void setConnectionType(HttpProxyOptions.HttpProxyConnectionType connectionType)
connectionType - what kind of connection to establishpublic HttpProxyOptions.HttpProxyConnectionType getConnectionType()
public void setHost(String host)
host - proxy to connect throughpublic String getHost()
public void setPort(int port)
port - proxy port to connect throughpublic int getPort()
public void setAuthorizationType(HttpProxyOptions.HttpProxyAuthorizationType authorizationType)
authorizationType - what kind of authentication, if any, to usepublic HttpProxyOptions.HttpProxyAuthorizationType getAuthorizationType()
public void setAuthorizationUsername(String username)
username - username to use with basic authenticationpublic String getAuthorizationUsername()
public void setAuthorizationPassword(String password)
password - password to use with basic authenticationpublic String getAuthorizationPassword()
public void setTlsContext(TlsContext tlsContext)
tlsContext - tls context for the proxy connectionpublic TlsContext getTlsContext()
Copyright © 2021. All rights reserved.