Class OkHttpProperties
java.lang.Object
io.freefair.spring.okhttp.autoconfigure.OkHttpProperties
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleangetCache()The default connect timeout for new connections.The interval between web socket pings initiated by this client.Configure the protocols used by this client to communicate with remote servers.The default read timeout for new connections.The default write timeout for new connections.inthashCode()booleanWhether to follow redirects.booleanWhether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.booleanWhether to retry or not when a connectivity problem is encountered.voidvoidsetConnectTimeout(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.voidsetProtocols(List<Protocol> protocols) Configure the protocols used by this client to communicate with remote servers.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.toString()
- 
Constructor Details- 
OkHttpPropertiespublic OkHttpProperties()
 
- 
- 
Method Details- 
getConnectTimeoutThe default connect timeout for new connections.
- 
getReadTimeoutThe default read timeout for new connections.
- 
getWriteTimeoutThe default write timeout for new connections.
- 
getPingIntervalThe 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. 
- 
getCache
- 
isFollowSslRedirectsWhether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
- 
isFollowRedirectsWhether to follow redirects.
- 
isRetryOnConnectionFailureWhether to retry or not when a connectivity problem is encountered.
- 
getProtocolsConfigure the protocols used by this client to communicate with remote servers.
- 
getConnectionPool
- 
setConnectTimeoutThe default connect timeout for new connections.
- 
setReadTimeoutThe default read timeout for new connections.
- 
setWriteTimeoutThe default write timeout for new connections.
- 
setPingIntervalThe 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. 
- 
setCache
- 
setFollowSslRedirectsWhether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
- 
setFollowRedirectsWhether to follow redirects.
- 
setRetryOnConnectionFailureWhether to retry or not when a connectivity problem is encountered.
- 
setProtocolsConfigure the protocols used by this client to communicate with remote servers.
- 
equals
- 
canEqual
- 
hashCode
- 
toString
 
-