public final class ConfigFileResolvingHttpRequestFactory extends java.lang.Object implements MfClientHttpRequestFactory
Configuration.loadFile(String)
and Configuration.isAccessible(String) to load the resources if the
http method is GET and will fallback to the normal/wrapped factory to make http requests.MfClientHttpRequestFactory.RequestConfigurator| Constructor and Description |
|---|
ConfigFileResolvingHttpRequestFactory(MfClientHttpRequestFactoryImpl httpRequestFactory,
Configuration config,
java.lang.String jobId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.client.ClientHttpRequest |
createRequest(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod) |
void |
register(MfClientHttpRequestFactory.RequestConfigurator callback)
Register a callback for config using a http request.
|
public ConfigFileResolvingHttpRequestFactory(MfClientHttpRequestFactoryImpl httpRequestFactory, Configuration config, java.lang.String jobId)
httpRequestFactory - basic request factoryconfig - the template for the current print job.jobId - the job IDpublic void register(@Nonnull
MfClientHttpRequestFactory.RequestConfigurator callback)
MfClientHttpRequestFactoryregister in interface MfClientHttpRequestFactorycallback - the configuration callbackpublic org.springframework.http.client.ClientHttpRequest createRequest(java.net.URI uri,
org.springframework.http.HttpMethod httpMethod)
throws java.io.IOException
createRequest in interface org.springframework.http.client.ClientHttpRequestFactoryjava.io.IOException