Class ConfigFileResolvingHttpRequestFactory

java.lang.Object
org.mapfish.print.http.ConfigFileResolvingHttpRequestFactory
All Implemented Interfaces:
MfClientHttpRequestFactory, org.springframework.http.client.ClientHttpRequestFactory

public final class ConfigFileResolvingHttpRequestFactory extends Object implements MfClientHttpRequestFactory
This request factory will attempt to load resources using Configuration.loadFile(String) and Configuration.isAccessible(String) to load the resources if the http method is GET and will fall back to the normal/wrapped factory to make http requests.
  • Constructor Details

    • ConfigFileResolvingHttpRequestFactory

      public ConfigFileResolvingHttpRequestFactory(MfClientHttpRequestFactoryImpl httpRequestFactory, Configuration config, @Nonnull Map<String,String> mdcContext, int httpRequestMaxNumberFetchRetry, int httpRequestFetchRetryIntervalMillis)
      Constructor.
      Parameters:
      httpRequestFactory - basic request factory
      config - the template for the current print job.
      mdcContext - the mdc context for the current print job.
  • Method Details