Class JDKHttpClientConfig
java.lang.Object
com.github.scribejava.core.httpclient.jdk.JDKHttpClientConfig
- All Implemented Interfaces:
HttpClientConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JDKHttpClientConfiggetProxy()booleanvoidsetConnectTimeout(Integer connectTimeout) voidsetFollowRedirects(boolean followRedirects) Sets whether the underlying Http Connection follows redirects or not.voidvoidsetReadTimeout(Integer readTimeout) withConnectTimeout(Integer connectTimeout) withFollowRedirects(boolean followRedirects) Sets whether the underlying Http Connection follows redirects or not.withReadTimeout(Integer readTimeout)
-
Constructor Details
-
JDKHttpClientConfig
public JDKHttpClientConfig()
-
-
Method Details
-
createDefaultConfig
- Specified by:
createDefaultConfigin interfaceHttpClientConfig
-
defaultConfig
-
getConnectTimeout
-
setConnectTimeout
-
withConnectTimeout
-
getReadTimeout
-
setReadTimeout
-
withReadTimeout
-
setProxy
-
getProxy
-
withProxy
-
isFollowRedirects
public boolean isFollowRedirects() -
setFollowRedirects
public void setFollowRedirects(boolean followRedirects) Sets whether the underlying Http Connection follows redirects or not. Defaults to true (follow redirects)- Parameters:
followRedirects- boolean- See Also:
-
withFollowRedirects
Sets whether the underlying Http Connection follows redirects or not. Defaults to true (follow redirects)- Parameters:
followRedirects- boolean- Returns:
- this for chaining methods invocations
- See Also:
-