Class MfClientHttpRequestFactoryImpl.Request

java.lang.Object
org.springframework.http.client.AbstractClientHttpRequest
org.mapfish.print.http.MfClientHttpRequestFactoryImpl.Request
All Implemented Interfaces:
ConfigurableRequest, org.springframework.http.client.ClientHttpRequest, org.springframework.http.HttpMessage, org.springframework.http.HttpOutputMessage, org.springframework.http.HttpRequest
Enclosing class:
MfClientHttpRequestFactoryImpl

public static final class MfClientHttpRequestFactoryImpl.Request extends org.springframework.http.client.AbstractClientHttpRequest implements ConfigurableRequest
A request that can be configured at a low level.

It is an http components based request.

  • Method Details

    • setConfiguration

      public void setConfiguration(Configuration configuration)
      Description copied from interface: ConfigurableRequest
      Set the current configuration object. This should only be called by ConfigFileResolvingHttpRequestFactory.
      Specified by:
      setConfiguration in interface ConfigurableRequest
      Parameters:
      configuration - the config object for the current print job.
    • getClient

      public org.apache.http.client.HttpClient getClient()
    • getContext

      public org.apache.http.protocol.HttpContext getContext()
    • getUnderlyingRequest

      public org.apache.http.client.methods.HttpRequestBase getUnderlyingRequest()
      Description copied from interface: ConfigurableRequest
      Obtain the request object.
      Specified by:
      getUnderlyingRequest in interface ConfigurableRequest
    • getMethod

      public org.springframework.http.HttpMethod getMethod()
      Specified by:
      getMethod in interface org.springframework.http.HttpRequest
    • getMethodValue

      @Nonnull public String getMethodValue()
      Specified by:
      getMethodValue in interface org.springframework.http.HttpRequest
    • getURI

      @Nonnull public URI getURI()
      Specified by:
      getURI in interface org.springframework.http.HttpRequest
    • getBodyInternal

      @Nonnull protected OutputStream getBodyInternal(@Nonnull org.springframework.http.HttpHeaders headers)
      Specified by:
      getBodyInternal in class org.springframework.http.client.AbstractClientHttpRequest
    • executeInternal

      @Nonnull protected MfClientHttpRequestFactoryImpl.Response executeInternal(@Nonnull org.springframework.http.HttpHeaders headers) throws IOException
      Specified by:
      executeInternal in class org.springframework.http.client.AbstractClientHttpRequest
      Throws:
      IOException