|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.http.client.AbstractClientHttpRequestFactoryWrapper
public abstract class AbstractClientHttpRequestFactoryWrapper
Abstract base class for ClientHttpRequestFactory
implementations that decorate another request factory.
Constructor Summary | |
---|---|
protected |
AbstractClientHttpRequestFactoryWrapper(ClientHttpRequestFactory requestFactory)
Creates a AbstractClientHttpRequestFactoryWrapper wrapping the given request factory. |
Method Summary | |
---|---|
ClientHttpRequest |
createRequest(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(URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory)
Create a new ClientHttpRequest for the specified URI and HTTP method by using the
passed-on request factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractClientHttpRequestFactoryWrapper(ClientHttpRequestFactory requestFactory)
AbstractClientHttpRequestFactoryWrapper
wrapping the given request factory.
requestFactory
- the request factory to be wrappedMethod Detail |
---|
public final ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod) throws IOException
createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the
constructor.
createRequest
in interface ClientHttpRequestFactory
uri
- the URI to create a request forhttpMethod
- the HTTP method to execute
IOException
- in case of I/O errorsprotected abstract ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) throws 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 factory
IOException
- in case of I/O errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |