public class Network
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ApiResponse |
addAlias(java.lang.String name,
java.lang.String enabled)
Adds an alias for the local servers/proxies.
|
ApiResponse |
addHttpProxyExclusion(java.lang.String host,
java.lang.String enabled)
Adds a host to be excluded from the HTTP proxy.
|
ApiResponse |
addLocalServer(java.lang.String address,
java.lang.String port,
java.lang.String api,
java.lang.String proxy,
java.lang.String behindnat,
java.lang.String decoderesponse,
java.lang.String removeacceptencoding)
Adds a local server/proxy.
|
ApiResponse |
addPassThrough(java.lang.String authority,
java.lang.String enabled)
Adds an authority to pass-through the local proxies.
|
ApiResponse |
addPkcs12ClientCertificate(java.lang.String filepath,
java.lang.String password,
java.lang.String index)
Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set
as active and used.
|
ApiResponse |
generateRootCaCert()
Generates a new Root CA certificate, used to issue server certificates.
|
ApiResponse |
getAliases()
Gets the aliases used to identify the local servers/proxies.
|
ApiResponse |
getConnectionTimeout()
Gets the connection timeout, in seconds.
|
ApiResponse |
getDefaultUserAgent()
Gets the default user-agent.
|
ApiResponse |
getDnsTtlSuccessfulQueries()
Gets the TTL (in seconds) of successful DNS queries.
|
ApiResponse |
getHttpProxy()
Gets the HTTP proxy.
|
ApiResponse |
getHttpProxyExclusions()
Gets the HTTP proxy exclusions.
|
ApiResponse |
getLocalServers()
Gets the local servers/proxies.
|
ApiResponse |
getPassThroughs()
Gets the authorities that will pass-through the local proxies.
|
ApiResponse |
getRootCaCertValidity()
Gets the Root CA certificate validity, in days.
|
ApiResponse |
getServerCertValidity()
Gets the server certificate validity, in days.
|
ApiResponse |
getSocksProxy()
Gets the SOCKS proxy.
|
ApiResponse |
importRootCaCert(java.lang.String filepath)
Imports a Root CA certificate to be used to issue server certificates.
|
ApiResponse |
isHttpProxyAuthEnabled()
Tells whether or not the HTTP proxy authentication is enabled.
|
ApiResponse |
isHttpProxyEnabled()
Tells whether or not the HTTP proxy is enabled.
|
ApiResponse |
isSocksProxyEnabled()
Tells whether or not the SOCKS proxy is enabled.
|
ApiResponse |
isUseGlobalHttpState()
Tells whether or not to use global HTTP state.
|
byte[] |
proxypac()
Provides a PAC file, proxying through the main proxy.
|
ApiResponse |
removeAlias(java.lang.String name)
Removes an alias.
|
ApiResponse |
removeHttpProxyExclusion(java.lang.String host)
Removes a HTTP proxy exclusion.
|
ApiResponse |
removeLocalServer(java.lang.String address,
java.lang.String port)
Removes a local server/proxy.
|
ApiResponse |
removePassThrough(java.lang.String authority)
Removes a pass-through.
|
byte[] |
rootCaCert()
Gets the Root CA certificate used to issue server certificates.
|
ApiResponse |
setAliasEnabled(java.lang.String name,
java.lang.String enabled)
Sets whether or not an alias is enabled.
|
ApiResponse |
setConnectionTimeout(java.lang.String timeout)
Sets the timeout, for reads and connects.
|
ApiResponse |
setDefaultUserAgent(java.lang.String useragent)
Sets the default user-agent.
|
ApiResponse |
setDnsTtlSuccessfulQueries(java.lang.String ttl)
Sets the TTL of successful DNS queries.
|
ApiResponse |
setHttpProxy(java.lang.String host,
java.lang.String port,
java.lang.String realm,
java.lang.String username,
java.lang.String password)
Sets the HTTP proxy configuration.
|
ApiResponse |
setHttpProxyAuthEnabled(java.lang.String enabled)
Sets whether or not the HTTP proxy authentication is enabled.
|
ApiResponse |
setHttpProxyEnabled(java.lang.String enabled)
Sets whether or not the HTTP proxy is enabled.
|
ApiResponse |
setHttpProxyExclusionEnabled(java.lang.String host,
java.lang.String enabled)
Sets whether or not a HTTP proxy exclusion is enabled.
|
ApiResponse |
setPassThroughEnabled(java.lang.String authority,
java.lang.String enabled)
Sets whether or not a pass-through is enabled.
|
byte[] |
setProxy(java.lang.String proxy)
Sets the HTTP proxy configuration.
|
ApiResponse |
setRootCaCertValidity(java.lang.String validity)
Sets the Root CA certificate validity.
|
ApiResponse |
setServerCertValidity(java.lang.String validity)
Sets the server certificate validity.
|
ApiResponse |
setSocksProxy(java.lang.String host,
java.lang.String port,
java.lang.String version,
java.lang.String usedns,
java.lang.String username,
java.lang.String password)
Sets the SOCKS proxy configuration.
|
ApiResponse |
setSocksProxyEnabled(java.lang.String enabled)
Sets whether or not the SOCKS proxy is enabled.
|
ApiResponse |
setUseClientCertificate(java.lang.String use)
Sets whether or not to use the active client certificate.
|
ApiResponse |
setUseGlobalHttpState(java.lang.String use)
Sets whether or not to use the global HTTP state.
|
public Network(ClientApi api)
public ApiResponse getRootCaCertValidity() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getServerCertValidity() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getAliases() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getLocalServers() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getPassThroughs() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getConnectionTimeout() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getDefaultUserAgent() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getDnsTtlSuccessfulQueries() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getHttpProxy() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getHttpProxyExclusions() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse getSocksProxy() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse isHttpProxyAuthEnabled() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse isHttpProxyEnabled() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse isSocksProxyEnabled() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse isUseGlobalHttpState() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse generateRootCaCert() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse importRootCaCert(java.lang.String filepath) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setRootCaCertValidity(java.lang.String validity) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setServerCertValidity(java.lang.String validity) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse addAlias(java.lang.String name, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse addLocalServer(java.lang.String address, java.lang.String port, java.lang.String api, java.lang.String proxy, java.lang.String behindnat, java.lang.String decoderesponse, java.lang.String removeacceptencoding) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse addPassThrough(java.lang.String authority, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse removeAlias(java.lang.String name) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse removeLocalServer(java.lang.String address, java.lang.String port) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse removePassThrough(java.lang.String authority) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setAliasEnabled(java.lang.String name, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setPassThroughEnabled(java.lang.String authority, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setConnectionTimeout(java.lang.String timeout) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setDefaultUserAgent(java.lang.String useragent) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setDnsTtlSuccessfulQueries(java.lang.String ttl) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse addHttpProxyExclusion(java.lang.String host, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse removeHttpProxyExclusion(java.lang.String host) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setHttpProxy(java.lang.String host, java.lang.String port, java.lang.String realm, java.lang.String username, java.lang.String password) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setHttpProxyAuthEnabled(java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setHttpProxyEnabled(java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setHttpProxyExclusionEnabled(java.lang.String host, java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setSocksProxy(java.lang.String host, java.lang.String port, java.lang.String version, java.lang.String usedns, java.lang.String username, java.lang.String password) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setSocksProxyEnabled(java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setUseGlobalHttpState(java.lang.String use) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse addPkcs12ClientCertificate(java.lang.String filepath, java.lang.String password, java.lang.String index) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public ApiResponse setUseClientCertificate(java.lang.String use) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public byte[] proxypac() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public byte[] setProxy(java.lang.String proxy) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException
public byte[] rootCaCert() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException