open class SimpleClientHttpRequestFactory : ClientHttpRequestFactory, AsyncClientHttpRequestFactory
ClientHttpRequestFactory implementation that uses standard JDK facilities.
Author
Arjen Poutsma
Author
Juergen Hoeller
Since
3.0
See Also
java.net.HttpURLConnectionHttpComponentsClientHttpRequestFactory
SimpleClientHttpRequestFactory()
ClientHttpRequestFactory implementation that uses standard JDK facilities. |
open fun createAsyncRequest(uri: URI, httpMethod: HttpMethod): AsyncClientHttpRequest
{@inheritDoc} Setting the |
|
open fun createRequest(uri: URI, httpMethod: HttpMethod): ClientHttpRequest |
|
open fun setBufferRequestBody(bufferRequestBody: Boolean): Unit
Indicate whether this request factory should buffer the request body internally. Default is |
|
open fun setChunkSize(chunkSize: Int): Unit
Set the number of bytes to write in each chunk when not buffering request bodies locally. Note that this parameter is only used when |
|
open fun setConnectTimeout(connectTimeout: Int): Unit
Set the underlying URLConnection's connect timeout (in milliseconds). A timeout value of 0 specifies an infinite timeout. Default is the system's default timeout. |
|
open fun setOutputStreaming(outputStreaming: Boolean): Unit
Set if the underlying URLConnection can be set to 'output streaming' mode. Default is When output streaming is enabled, authentication and redirection cannot be handled automatically. If output streaming is disabled, the |
|
open fun setProxy(proxy: Proxy): Unit
Set the Proxy to use for this request factory. |
|
open fun setReadTimeout(readTimeout: Int): Unit
Set the underlying URLConnection's read timeout (in milliseconds). A timeout value of 0 specifies an infinite timeout. Default is the system's default timeout. |
|
open fun setTaskExecutor(taskExecutor: AsyncListenableTaskExecutor): Unit
Set the task executor for this request factory. Setting this property is required for creating asynchronous requests. |