ClientHttpRequestFactory implementation based on the Java
HttpClient.
| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private final java. | |
| private Duration |
| Access | Constructor and Description |
|---|---|
| public | JdkClientHttpRequestFactory()
Create a new instance of the |
| public | JdkClientHttpRequestFactory(java.
the client to base on httpClientCreate a new instance of the |
| public | JdkClientHttpRequestFactory(java.
the client to base on httpClient,the executor to use for blocking write operations executor)Create a new instance of the |
| 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. Create a new |
| public void | |
| public void |
| executor | back to summary |
|---|---|
| private final Executor executor | |
| httpClient | back to summary |
|---|---|
| private final java. | |
| readTimeout | back to summary |
|---|---|
| private Duration readTimeout
| |
| JdkClientHttpRequestFactory | back to summary |
|---|---|
| public JdkClientHttpRequestFactory() Create a new instance of the | |
| JdkClientHttpRequestFactory | back to summary |
|---|---|
| public JdkClientHttpRequestFactory(java. Create a new instance of the
| |
| JdkClientHttpRequestFactory | back to summary |
|---|---|
| public JdkClientHttpRequestFactory(java. Create a new instance of the
| |
| createRequest | back to summary |
|---|---|
| public ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod) throws IOException Implements org. Doc from org. Create a new The returned request can be written to, and then executed by calling
| |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(int readTimeout) Set the underlying Default is the system's default timeout. | |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(Duration readTimeout) Set the underlying Default is the system's default timeout. | |