Class NetworkSettings

java.lang.Object
org.shredzone.acme4j.connector.NetworkSettings

public class NetworkSettings extends Object
Contains network settings to be used for network connections.
Since:
2.8
  • Constructor Details

  • Method Details

    • getProxy

      public Proxy getProxy()
      Gets the Proxy to be used for connections.
    • setProxy

      public void setProxy(@Nullable Proxy proxy)
      Sets a Proxy that is to be used for all connections. If null, Proxy.NO_PROXY is used, which is also the default.
    • getTimeout

      public Duration getTimeout()
      Gets the current network timeout.
    • setTimeout

      public void setTimeout(Duration timeout)
      Sets the network timeout to be used for connections. Defaults to 10 seconds.
      Parameters:
      timeout - Network timeout Duration