java.lang.Object
org.shredzone.acme4j.connector.NetworkSettings
Contains network settings to be used for network connections.
- Since:
- 2.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProxy()
Gets theProxy
to be used for connections.Gets the current network timeout.void
Sets aProxy
that is to be used for all connections.void
setTimeout
(Duration timeout) Sets the network timeout to be used for connections.
-
Constructor Details
-
NetworkSettings
public NetworkSettings()
-
-
Method Details
-
getProxy
Gets theProxy
to be used for connections. -
setProxy
Sets aProxy
that is to be used for all connections. Ifnull
,Proxy.NO_PROXY
is used, which is also the default. -
getTimeout
Gets the current network timeout. -
setTimeout
Sets the network timeout to be used for connections. Defaults to 10 seconds.- Parameters:
timeout
- Network timeoutDuration
-