Class JDKHttpClientConfig
- java.lang.Object
-
- com.github.scribejava.core.httpclient.jdk.JDKHttpClientConfig
-
- All Implemented Interfaces:
HttpClientConfig
public class JDKHttpClientConfig extends java.lang.Object implements HttpClientConfig
-
-
Constructor Summary
Constructors Constructor Description JDKHttpClientConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JDKHttpClientConfigcreateDefaultConfig()static JDKHttpClientConfigdefaultConfig()java.lang.IntegergetConnectTimeout()java.lang.IntegergetReadTimeout()booleanisFollowRedirects()voidsetConnectTimeout(java.lang.Integer connectTimeout)voidsetFollowRedirects(boolean followRedirects)Sets whether the underlying Http Connection follows redirects or not.voidsetReadTimeout(java.lang.Integer readTimeout)
-
-
-
Method Detail
-
createDefaultConfig
public JDKHttpClientConfig createDefaultConfig()
- Specified by:
createDefaultConfigin interfaceHttpClientConfig
-
defaultConfig
public static JDKHttpClientConfig defaultConfig()
-
getConnectTimeout
public java.lang.Integer getConnectTimeout()
-
setConnectTimeout
public void setConnectTimeout(java.lang.Integer connectTimeout)
-
getReadTimeout
public java.lang.Integer getReadTimeout()
-
setReadTimeout
public void setReadTimeout(java.lang.Integer readTimeout)
-
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:
- http://docs.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html#setInstanceFollowRedirects(boolean)
-
-