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
ClientApiExceptionpublic ApiResponse getServerCertValidity() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getAliases() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getLocalServers() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getPassThroughs() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getConnectionTimeout() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getDefaultUserAgent() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getDnsTtlSuccessfulQueries() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getHttpProxy() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getHttpProxyExclusions() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse getSocksProxy() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse isHttpProxyAuthEnabled() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse isHttpProxyEnabled() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse isSocksProxyEnabled() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse isUseGlobalHttpState() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse generateRootCaCert() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse importRootCaCert(java.lang.String filepath) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse setRootCaCertValidity(java.lang.String validity) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse setServerCertValidity(java.lang.String validity) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic 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
ClientApiExceptionpublic 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
ClientApiExceptionpublic 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
ClientApiExceptionpublic ApiResponse removeAlias(java.lang.String name) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic 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
ClientApiExceptionpublic ApiResponse removePassThrough(java.lang.String authority) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic 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
ClientApiExceptionpublic 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
ClientApiExceptionpublic ApiResponse setConnectionTimeout(java.lang.String timeout) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse setDefaultUserAgent(java.lang.String useragent) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse setDnsTtlSuccessfulQueries(java.lang.String ttl) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic 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
ClientApiExceptionpublic ApiResponse removeHttpProxyExclusion(java.lang.String host) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic 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
ClientApiExceptionpublic ApiResponse setHttpProxyAuthEnabled(java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse setHttpProxyEnabled(java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic 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
ClientApiExceptionpublic 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
ClientApiExceptionpublic ApiResponse setSocksProxyEnabled(java.lang.String enabled) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse setUseGlobalHttpState(java.lang.String use) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic 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
ClientApiExceptionpublic ApiResponse setUseClientCertificate(java.lang.String use) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic byte[] proxypac()
throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic byte[] setProxy(java.lang.String proxy)
throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic byte[] rootCaCert()
throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException