Class Network
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an alias for the local servers/proxies.addHttpProxyExclusion(String host, String enabled) Adds a host to be excluded from the HTTP proxy.addLocalServer(String address, String port, String api, String proxy, String behindnat, String decoderesponse, String removeacceptencoding) Adds a local server/proxy.addPassThrough(String authority, String enabled) Adds an authority to pass-through the local proxies.addPkcs12ClientCertificate(String filepath, String password, String index) Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.addRateLimitRule(String description, String enabled, String matchregex, String matchstring, String requestspersecond, String groupby) Adds a rate limit ruleGenerates a new Root CA certificate, used to issue server certificates.Gets the aliases used to identify the local servers/proxies.Gets the connection timeout, in seconds.Gets the default user-agent.Gets the TTL (in seconds) of successful DNS queries.Gets the HTTP proxy.Gets the HTTP proxy exclusions.Gets the local servers/proxies.Gets the authorities that will pass-through the local proxies.List of rate limit rules.Gets the Root CA certificate validity, in days.Gets the server certificate validity, in days.Gets the SOCKS proxy.importRootCaCert(String filepath) Imports a Root CA certificate to be used to issue server certificates.Tells whether or not the HTTP proxy authentication is enabled.Tells whether or not the HTTP proxy is enabled.Tells whether or not the SOCKS proxy is enabled.Tells whether or not to use global HTTP state.byte[]proxypac()Provides a PAC file, proxying through the main proxy.removeAlias(String name) Removes an alias.Removes an HTTP proxy exclusion.removeLocalServer(String address, String port) Removes a local server/proxy.removePassThrough(String authority) Removes a pass-through.removeRateLimitRule(String description) Remove a rate limit rulebyte[]Gets the Root CA certificate used to issue server certificates.setAliasEnabled(String name, String enabled) Sets whether or not an alias is enabled.setConnectionTimeout(String timeout) Sets the timeout, for reads and connects.setDefaultUserAgent(String useragent) Sets the default user-agent.Sets the TTL of successful DNS queries.Sets the HTTP proxy configuration.setHttpProxyAuthEnabled(String enabled) Sets whether or not the HTTP proxy authentication is enabled.setHttpProxyEnabled(String enabled) Sets whether or not the HTTP proxy is enabled.setHttpProxyExclusionEnabled(String host, String enabled) Sets whether or not an HTTP proxy exclusion is enabled.setPassThroughEnabled(String authority, String enabled) Sets whether or not a pass-through is enabled.byte[]Sets the HTTP proxy configuration.setRateLimitRuleEnabled(String description, String enabled) Set enabled state for a rate limit rule.setRootCaCertValidity(String validity) Sets the Root CA certificate validity.setServerCertValidity(String validity) Sets the server certificate validity.setSocksProxy(String host, String port, String version, String usedns, String username, String password) Sets the SOCKS proxy configuration.setSocksProxyEnabled(String enabled) Sets whether or not the SOCKS proxy is enabled.Sets whether or not to use the active client certificate.Sets whether or not to use the global HTTP state.
-
Constructor Details
-
Network
-
-
Method Details
-
getRootCaCertValidity
Gets the Root CA certificate validity, in days. Used when generating a new Root CA certificate.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getServerCertValidity
Gets the server certificate validity, in days. Used when generating server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getAliases
Gets the aliases used to identify the local servers/proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getLocalServers
Gets the local servers/proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getPassThroughs
Gets the authorities that will pass-through the local proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getConnectionTimeout
Gets the connection timeout, in seconds.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getDefaultUserAgent
Gets the default user-agent.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getDnsTtlSuccessfulQueries
Gets the TTL (in seconds) of successful DNS queries.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getHttpProxy
Gets the HTTP proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getHttpProxyExclusions
Gets the HTTP proxy exclusions.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getSocksProxy
Gets the SOCKS proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isHttpProxyAuthEnabled
Tells whether or not the HTTP proxy authentication is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isHttpProxyEnabled
Tells whether or not the HTTP proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isSocksProxyEnabled
Tells whether or not the SOCKS proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
isUseGlobalHttpState
Tells whether or not to use global HTTP state.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
getRateLimitRules
List of rate limit rules.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
generateRootCaCert
Generates a new Root CA certificate, used to issue server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
importRootCaCert
Imports a Root CA certificate to be used to issue server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setRootCaCertValidity
Sets the Root CA certificate validity. Used when generating a new Root CA certificate.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setServerCertValidity
Sets the server certificate validity. Used when generating server certificates.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addAlias
Adds an alias for the local servers/proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addLocalServer
public ApiResponse addLocalServer(String address, String port, String api, String proxy, String behindnat, String decoderesponse, String removeacceptencoding) throws ClientApiException Adds a local server/proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addPassThrough
Adds an authority to pass-through the local proxies.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeAlias
Removes an alias.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeLocalServer
Removes a local server/proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removePassThrough
Removes a pass-through.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setAliasEnabled
Sets whether or not an alias is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setPassThroughEnabled
public ApiResponse setPassThroughEnabled(String authority, String enabled) throws ClientApiException Sets whether or not a pass-through is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setConnectionTimeout
Sets the timeout, for reads and connects.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setDefaultUserAgent
Sets the default user-agent.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setDnsTtlSuccessfulQueries
Sets the TTL of successful DNS queries.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addHttpProxyExclusion
Adds a host to be excluded from the HTTP proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeHttpProxyExclusion
Removes an HTTP proxy exclusion.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxy
public ApiResponse setHttpProxy(String host, String port, String realm, String username, String password) throws ClientApiException Sets the HTTP proxy configuration.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxyAuthEnabled
Sets whether or not the HTTP proxy authentication is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxyEnabled
Sets whether or not the HTTP proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setHttpProxyExclusionEnabled
public ApiResponse setHttpProxyExclusionEnabled(String host, String enabled) throws ClientApiException Sets whether or not an HTTP proxy exclusion is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setSocksProxy
public ApiResponse setSocksProxy(String host, String port, String version, String usedns, String username, String password) throws ClientApiException Sets the SOCKS proxy configuration.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setSocksProxyEnabled
Sets whether or not the SOCKS proxy is enabled.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setUseGlobalHttpState
Sets whether or not to use the global HTTP state.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addPkcs12ClientCertificate
public ApiResponse addPkcs12ClientCertificate(String filepath, String password, String index) throws ClientApiException Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setUseClientCertificate
Sets whether or not to use the active client certificate.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
addRateLimitRule
public ApiResponse addRateLimitRule(String description, String enabled, String matchregex, String matchstring, String requestspersecond, String groupby) throws ClientApiException Adds a rate limit ruleThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
removeRateLimitRule
Remove a rate limit ruleThis component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setRateLimitRuleEnabled
public ApiResponse setRateLimitRuleEnabled(String description, String enabled) throws ClientApiException Set enabled state for a rate limit rule.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
proxypac
Provides a PAC file, proxying through the main proxy.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
setProxy
Sets the HTTP proxy configuration.This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-
rootCaCert
Gets the Root CA certificate used to issue server certificates. Suitable to import into client applications (e.g. browsers).This component is optional and therefore the API will only work if it is installed
- Throws:
ClientApiException
-