Package com.auth0.client
Class HttpOptions
java.lang.Object
com.auth0.client.HttpOptions
Used to configure additional configuration options when customizing the API client instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the Proxy configuration optionsint
void
setConnectTimeout(int connectTimeout)
Sets the value of the connect timeout, in seconds.void
setProxyOptions(ProxyOptions proxyOptions)
Setter for the Proxy configuration optionsvoid
setReadTimeout(int readTimeout)
Sets the value of the read timeout, in seconds.
-
Constructor Details
-
HttpOptions
public HttpOptions()
-
-
Method Details
-
getProxyOptions
Getter for the Proxy configuration options- Returns:
- the Proxy configuration options if set, null otherwise.
-
setProxyOptions
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.
-