Class OkHttpProperties
java.lang.Object
io.freefair.spring.okhttp.autoconfigure.OkHttpProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetCache()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.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.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
-
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
-