Package org.mapfish.print.http
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 TypeMethodDescriptionprotected MfClientHttpRequestFactoryImpl.ResponseexecuteInternal(org.springframework.http.HttpHeaders headers) protected OutputStreamgetBodyInternal(org.springframework.http.HttpHeaders headers) org.apache.http.client.HttpClientorg.apache.http.protocol.HttpContextorg.springframework.http.HttpMethodorg.apache.http.client.methods.HttpRequestBaseObtain the request object.getURI()voidsetConfiguration(Configuration configuration) Set the current configuration object.Methods inherited from class org.springframework.http.client.AbstractClientHttpRequest
assertNotExecuted, execute, getBody, getHeadersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.client.ClientHttpRequest
executeMethods inherited from interface org.springframework.http.HttpMessage
getHeadersMethods inherited from interface org.springframework.http.HttpOutputMessage
getBody
-
Method Details
-
setConfiguration
Description copied from interface:ConfigurableRequestSet the current configuration object. This should only be called byConfigFileResolvingHttpRequestFactory.- Specified by:
setConfigurationin interfaceConfigurableRequest- 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:ConfigurableRequestObtain the request object.- Specified by:
getUnderlyingRequestin interfaceConfigurableRequest
-
getMethod
public org.springframework.http.HttpMethod getMethod()- Specified by:
getMethodin interfaceorg.springframework.http.HttpRequest
-
getMethodValue
- Specified by:
getMethodValuein interfaceorg.springframework.http.HttpRequest
-
getURI
- Specified by:
getURIin interfaceorg.springframework.http.HttpRequest
-
getBodyInternal
@Nonnull protected OutputStream getBodyInternal(@Nonnull org.springframework.http.HttpHeaders headers) - Specified by:
getBodyInternalin classorg.springframework.http.client.AbstractClientHttpRequest
-
executeInternal
@Nonnull protected MfClientHttpRequestFactoryImpl.Response executeInternal(@Nonnull org.springframework.http.HttpHeaders headers) throws IOException - Specified by:
executeInternalin classorg.springframework.http.client.AbstractClientHttpRequest- Throws:
IOException
-