public abstract class AbstractClientHttpRequestFactoryWrapper extends java.lang.Object implements ClientHttpRequestFactory
ClientHttpRequestFactory implementations
that decorate another request factory.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClientHttpRequestFactoryWrapper(ClientHttpRequestFactory requestFactory)
Create a
AbstractClientHttpRequestFactoryWrapper wrapping the given request factory. |
| Modifier and Type | Method and Description |
|---|---|
ClientHttpRequest |
createRequest(java.net.URI uri,
HttpMethod httpMethod)
This implementation simply calls
createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the
constructor. |
protected abstract ClientHttpRequest |
createRequest(java.net.URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory)
Create a new
ClientHttpRequest for the specified URI and HTTP method
by using the passed-on request factory. |
protected AbstractClientHttpRequestFactoryWrapper(ClientHttpRequestFactory requestFactory)
AbstractClientHttpRequestFactoryWrapper wrapping the given request factory.requestFactory - the request factory to be wrappedpublic final ClientHttpRequest createRequest(java.net.URI uri, HttpMethod httpMethod) throws java.io.IOException
createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the
constructor.createRequest in interface ClientHttpRequestFactoryuri - the URI to create a request forhttpMethod - the HTTP method to executejava.io.IOException - in case of I/O errorsprotected abstract ClientHttpRequest createRequest(java.net.URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) throws java.io.IOException
ClientHttpRequest for the specified URI and HTTP method
by using the passed-on request factory.
Called from createRequest(URI, HttpMethod).
uri - the URI to create a request forhttpMethod - the HTTP method to executerequestFactory - the wrapped request factoryjava.io.IOException - in case of I/O errors