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 Summary

    Modifier and Type
    Method
    Description
    executeInternal(org.springframework.http.HttpHeaders headers)
     
    protected OutputStream
    getBodyInternal(org.springframework.http.HttpHeaders headers)
     
    org.apache.hc.client5.http.classic.HttpClient
     
    org.apache.hc.core5.http.protocol.HttpContext
     
    org.springframework.http.HttpMethod
     
    org.apache.hc.client5.http.classic.methods.HttpUriRequestBase
    Obtain the request object.
     
    void
    Set the current configuration object.

    Methods inherited from class org.springframework.http.client.AbstractClientHttpRequest

    assertNotExecuted, execute, getAttributes, getBody, getHeaders

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.http.client.ClientHttpRequest

    execute

    Methods inherited from interface org.springframework.http.HttpMessage

    getHeaders

    Methods inherited from interface org.springframework.http.HttpOutputMessage

    getBody

    Methods inherited from interface org.springframework.http.HttpRequest

    getAttributes
  • 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.hc.client5.http.classic.HttpClient getClient()
    • getContext

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

      public org.apache.hc.client5.http.classic.methods.HttpUriRequestBase 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
    • 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