Package io.freefair.spring.okhttp
Class OkHttpProperties
- java.lang.Object
- 
- io.freefair.spring.okhttp.OkHttpProperties
 
- 
 @ConfigurationProperties(prefix="okhttp") public class OkHttpProperties extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classOkHttpProperties.Cachestatic classOkHttpProperties.ConnectionPoolProperties
 - 
Constructor SummaryConstructors Constructor Description OkHttpProperties()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)OkHttpProperties.CachegetCache()OkHttpProperties.ConnectionPoolPropertiesgetConnectionPool()DurationgetConnectTimeout()The default connect timeout for new connections.DurationgetPingInterval()The interval between web socket pings initiated by this client.DurationgetReadTimeout()The default read timeout for new connections.DurationgetWriteTimeout()The default write timeout for new connections.inthashCode()booleanisFollowRedirects()Whether to follow redirects.booleanisFollowSslRedirects()Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.booleanisRetryOnConnectionFailure()Whether to retry or not when a connectivity problem is encountered.voidsetCache(OkHttpProperties.Cache cache)voidsetConnectTimeout(Duration connectTimeout)The default connect timeout for new connections.voidsetFollowRedirects(boolean followRedirects)Whether to follow redirects.voidsetFollowSslRedirects(boolean followSslRedirects)Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.voidsetPingInterval(Duration pingInterval)The interval between web socket pings initiated by this client.voidsetReadTimeout(Duration readTimeout)The default read timeout for new connections.voidsetRetryOnConnectionFailure(boolean retryOnConnectionFailure)Whether to retry or not when a connectivity problem is encountered.voidsetWriteTimeout(Duration writeTimeout)The default write timeout for new connections.StringtoString()
 
- 
- 
- 
Method Detail- 
getConnectTimeoutpublic Duration getConnectTimeout() The default connect timeout for new connections.
 - 
getReadTimeoutpublic Duration getReadTimeout() The default read timeout for new connections.
 - 
getWriteTimeoutpublic Duration getWriteTimeout() The default write timeout for new connections.
 - 
getPingIntervalpublic Duration getPingInterval() The interval between web socket pings initiated by this client. Use this to automatically send web socket ping frames until either the web socket fails or it is closed. This keeps the connection alive and may detect connectivity failures early. No timeouts are enforced on the acknowledging pongs.The default value of 0 disables client-initiated pings. 
 - 
getCachepublic OkHttpProperties.Cache getCache() 
 - 
isFollowSslRedirectspublic boolean isFollowSslRedirects() Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
 - 
isFollowRedirectspublic boolean isFollowRedirects() Whether to follow redirects.
 - 
isRetryOnConnectionFailurepublic boolean isRetryOnConnectionFailure() Whether to retry or not when a connectivity problem is encountered.
 - 
getConnectionPoolpublic OkHttpProperties.ConnectionPoolProperties getConnectionPool() 
 - 
setConnectTimeoutpublic void setConnectTimeout(Duration connectTimeout) The default connect timeout for new connections.
 - 
setReadTimeoutpublic void setReadTimeout(Duration readTimeout) The default read timeout for new connections.
 - 
setWriteTimeoutpublic void setWriteTimeout(Duration writeTimeout) The default write timeout for new connections.
 - 
setPingIntervalpublic void setPingInterval(Duration pingInterval) The interval between web socket pings initiated by this client. Use this to automatically send web socket ping frames until either the web socket fails or it is closed. This keeps the connection alive and may detect connectivity failures early. No timeouts are enforced on the acknowledging pongs.The default value of 0 disables client-initiated pings. 
 - 
setCachepublic void setCache(OkHttpProperties.Cache cache) 
 - 
setFollowSslRedirectspublic void setFollowSslRedirects(boolean followSslRedirects) Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
 - 
setFollowRedirectspublic void setFollowRedirects(boolean followRedirects) Whether to follow redirects.
 - 
setRetryOnConnectionFailurepublic void setRetryOnConnectionFailure(boolean retryOnConnectionFailure) Whether to retry or not when a connectivity problem is encountered.
 - 
canEqualprotected boolean canEqual(Object other) 
 
- 
 
-