public abstract class AbstractMfClientHttpRequestFactoryWrapper extends java.lang.Object implements MfClientHttpRequestFactory
MfClientHttpRequestFactory.RequestConfigurator| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMfClientHttpRequestFactoryWrapper(MfClientHttpRequestFactory wrappedFactory,
UriMatchers matchers,
boolean failIfNotMatch)
Creates a
AbstractClientHttpRequestFactoryWrapper wrapping the given request factory. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.client.ClientHttpRequest |
createRequest(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod)
This implementation simply calls
createRequest(URI, HttpMethod, MfClientHttpRequestFactory)
(if the matchers are OK) with the wrapped request factory provided to the constructor. |
protected abstract org.springframework.http.client.ClientHttpRequest |
createRequest(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod,
MfClientHttpRequestFactory requestFactory)
Create a new
ClientHttpRequest for the specified URI and HTTP method by using the passed-on
request factory. |
void |
register(MfClientHttpRequestFactory.RequestConfigurator callback)
Register a callback for config using a http request.
|
protected AbstractMfClientHttpRequestFactoryWrapper(MfClientHttpRequestFactory wrappedFactory, UriMatchers matchers, boolean failIfNotMatch)
AbstractClientHttpRequestFactoryWrapper wrapping the given request factory.wrappedFactory - the request factory to be wrapped.matchers - the matchers used to enable/disable the rule.failIfNotMatch - true if the processing must fail if the matchers are not OK.public final org.springframework.http.client.ClientHttpRequest createRequest(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod)
throws java.io.IOException
createRequest(URI, HttpMethod, MfClientHttpRequestFactory)
(if the matchers are OK) with the wrapped request factory provided to the constructor.createRequest in interface org.springframework.http.client.ClientHttpRequestFactoryuri - the URI to create a request forhttpMethod - the HTTP method to executejava.io.IOExceptionprotected abstract org.springframework.http.client.ClientHttpRequest createRequest(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod,
MfClientHttpRequestFactory 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 errorspublic final void register(MfClientHttpRequestFactory.RequestConfigurator callback)
MfClientHttpRequestFactoryregister in interface MfClientHttpRequestFactorycallback - the configuration callback