java.lang.Object
org.shredzone.acme4j.connector.NetworkSettings
Contains network settings to be used for network connections.
- Seit:
- 2.8
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringName of the system property to control GZIP compression. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets theAuthenticatorto be used, ornullif none is to be set.Gets theProxySelectorto be used for connections.Gets the current network timeout.booleanChecks if HTTP compression is enabled.voidsetAuthenticator(Authenticator authenticator) Sets anAuthenticatorto be used if HTTP authentication is needed (e.g.voidsetCompressionEnabled(boolean compression) Sets if HTTP compression is enabled.voidsetProxySelector(ProxySelector proxySelector) Sets aProxySelectorthat is to be used for all connections.voidsetTimeout(Duration timeout) Sets the network timeout to be used for connections.
-
Felddetails
-
GZIP_PROPERTY_NAME
Name of the system property to control GZIP compression. Expects a boolean value.- Siehe auch:
-
-
Konstruktordetails
-
NetworkSettings
public NetworkSettings()
-
-
Methodendetails
-
getProxySelector
Gets theProxySelectorto be used for connections.- Seit:
- 3.0.0
-
setProxySelector
Sets aProxySelectorthat is to be used for all connections. Ifnull,HttpClient.Builder.NO_PROXYis used, which is also the default.- Seit:
- 3.0.0
-
getAuthenticator
Gets theAuthenticatorto be used, ornullif none is to be set.- Seit:
- 3.0.0
-
setAuthenticator
Sets anAuthenticatorto be used if HTTP authentication is needed (e.g. by a proxy).nullmeans that no authenticator shall be set.- Seit:
- 3.0.0
-
getTimeout
Gets the current network timeout. -
setTimeout
Sets the network timeout to be used for connections. Defaults to 10 seconds.- Parameter:
timeout- Network timeoutDuration
-
isCompressionEnabled
Checks if HTTP compression is enabled.- Seit:
- 3.0.0
-
setCompressionEnabled
Sets if HTTP compression is enabled. It is enabled by default, but can be disabled e.g. for debugging purposes.acme4j gzip compression can also be controlled via the "org.shredzone.acme4j.gzip_compression" system property.
- Seit:
- 3.0.0
-