Class HttpOptions

java.lang.Object
com.auth0.client.HttpOptions

public class HttpOptions extends Object
Used to configure additional configuration options when customizing the API client instance.
  • Constructor Details

    • HttpOptions

      public HttpOptions()
  • Method Details

    • getProxyOptions

      public ProxyOptions getProxyOptions()
      Getter for the Proxy configuration options
      Returns:
      the Proxy configuration options if set, null otherwise.
    • setProxyOptions

      public void setProxyOptions(ProxyOptions proxyOptions)
      Setter for the Proxy configuration options
      Parameters:
      proxyOptions - the Proxy configuration options
    • getConnectTimeout

      public int getConnectTimeout()
      Returns:
      the connect timeout, in seconds
    • setConnectTimeout

      public void setConnectTimeout(int connectTimeout)
      Sets the value of the connect timeout, in seconds. Defaults to ten seconds. A value of zero results in no connect timeout. Negative numbers will be treated as zero.
      Parameters:
      connectTimeout - the value of the connect timeout to use.
    • getReadTimeout

      public int getReadTimeout()
      Returns:
      the read timeout, in seconds
    • setReadTimeout

      public void setReadTimeout(int readTimeout)
      Sets the value of the read timeout, in seconds. Defaults to ten seconds. A value of zero results in no read timeout. Negative numbers will be treated as zero.
      Parameters:
      readTimeout - the value of the read timeout to use.