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 theProxyto be used for connections.Gets the current network timeout.voidSets aProxythat is to be used for all connections.voidsetTimeout(Duration timeout) Sets the network timeout to be used for connections.
-
Constructor Details
-
NetworkSettings
public NetworkSettings()
-
-
Method Details
-
getProxy
Gets theProxyto be used for connections. -
setProxy
Sets aProxythat is to be used for all connections. Ifnull,Proxy.NO_PROXYis 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
-