Package io.freefair.spring.okhttp
Class OkHttpProperties
java.lang.Object
io.freefair.spring.okhttp.OkHttpProperties
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getCache()
The default connect timeout for new connections.The interval between web socket pings initiated by this client.The default read timeout for new connections.The default write timeout for new connections.int
hashCode()
boolean
Whether to follow redirects.boolean
Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.boolean
Whether to retry or not when a connectivity problem is encountered.void
void
setConnectTimeout
(Duration connectTimeout) The default connect timeout for new connections.void
setFollowRedirects
(boolean followRedirects) Whether to follow redirects.void
setFollowSslRedirects
(boolean followSslRedirects) Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.void
setPingInterval
(Duration pingInterval) The interval between web socket pings initiated by this client.void
setReadTimeout
(Duration readTimeout) The default read timeout for new connections.void
setRetryOnConnectionFailure
(boolean retryOnConnectionFailure) Whether to retry or not when a connectivity problem is encountered.void
setWriteTimeout
(Duration writeTimeout) The default write timeout for new connections.toString()
-
Constructor Details
-
OkHttpProperties
public OkHttpProperties()
-
-
Method Details
-
getConnectTimeout
The default connect timeout for new connections. -
getReadTimeout
The default read timeout for new connections. -
getWriteTimeout
The default write timeout for new connections. -
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.
-
getCache
-
isFollowSslRedirects
Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS. -
isFollowRedirects
Whether to follow redirects. -
isRetryOnConnectionFailure
Whether to retry or not when a connectivity problem is encountered. -
getConnectionPool
-
setConnectTimeout
The default connect timeout for new connections. -
setReadTimeout
The default read timeout for new connections. -
setWriteTimeout
The default write timeout for new connections. -
setPingInterval
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.
-
setCache
-
setFollowSslRedirects
Whether to follow redirects from HTTPS to HTTP and from HTTP to HTTPS. -
setFollowRedirects
Whether to follow redirects. -
setRetryOnConnectionFailure
Whether to retry or not when a connectivity problem is encountered. -
equals
-
canEqual
-
hashCode
-
toString
-