Deprecated
for removal since 6.1.
since 6.1, in favor of other ClientHttpRequestFactory
implementations; scheduled for removal in 6.2
ClientHttpRequestFactory implementation that uses
OkHttp 3.x to create requests.
| Modifier and Type | Field and Description |
|---|---|
| private okhttp3. | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | OkHttp3ClientHttpRequestFactory(okhttp3.
the client to use clientCreate a factory with the given |
| Modifier and Type | Method and Description |
|---|---|
| public ClientHttpRequest | createRequest(URI
the URI to create a request for uri, HttpMethod the HTTP method to execute httpMethod)Implements org. ClientHttpRequest for the specified URI and HTTP method.
|
| public void | destroy()
Implements org. BeanFactory on destruction of a bean.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| client | back to summary |
|---|---|
| private okhttp3. | |
| defaultClient | back to summary |
|---|---|
| private final boolean defaultClient | |
| OkHttp3ClientHttpRequestFactory | back to summary |
|---|---|
| public OkHttp3ClientHttpRequestFactory() Create a factory with a default | |
| OkHttp3ClientHttpRequestFactory | back to summary |
|---|---|
| public OkHttp3ClientHttpRequestFactory(okhttp3. Create a factory with the given
| |
| createRequest | back to summary |
|---|---|
| public ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod) Implements org. Doc from org. Create a new The returned request can be written to, and then executed by calling
| |
| destroy | back to summary |
|---|---|
| public void destroy() throws IOException Implements org. Doc from org. Invoked by the containing
| |
| setConnectTimeout | back to summary |
|---|---|
| public void setConnectTimeout(int connectTimeout) Set the underlying connect timeout in milliseconds. A value of 0 specifies an infinite timeout. | |
| setConnectTimeout | back to summary |
|---|---|
| public void setConnectTimeout(Duration connectTimeout) Set the underlying connect timeout in milliseconds. A value of 0 specifies an infinite timeout.
| |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(int readTimeout) Set the underlying read timeout in milliseconds. A value of 0 specifies an infinite timeout. | |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(Duration readTimeout) Set the underlying read timeout in milliseconds. A value of 0 specifies an infinite timeout.
| |
| setWriteTimeout | back to summary |
|---|---|
| public void setWriteTimeout(int writeTimeout) Set the underlying write timeout in milliseconds. A value of 0 specifies an infinite timeout. | |
| setWriteTimeout | back to summary |
|---|---|
| public void setWriteTimeout(Duration writeTimeout) Set the underlying write timeout in milliseconds. A value of 0 specifies an infinite timeout.
| |