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.Response
executeInternal
(org.springframework.http.HttpHeaders headers) protected OutputStream
getBodyInternal
(org.springframework.http.HttpHeaders headers) org.apache.http.client.HttpClient
org.apache.http.protocol.HttpContext
org.springframework.http.HttpMethod
org.apache.http.client.methods.HttpRequestBase
Obtain the request object.getURI()
void
setConfiguration
(Configuration configuration) Set the current configuration object.Methods inherited from class org.springframework.http.client.AbstractClientHttpRequest
assertNotExecuted, execute, 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
-
Method Details
-
setConfiguration
Description copied from interface:ConfigurableRequest
Set the current configuration object. This should only be called byConfigFileResolvingHttpRequestFactory
.- Specified by:
setConfiguration
in 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:ConfigurableRequest
Obtain the request object.- Specified by:
getUnderlyingRequest
in interfaceConfigurableRequest
-
getMethod
public org.springframework.http.HttpMethod getMethod()- Specified by:
getMethod
in interfaceorg.springframework.http.HttpRequest
-
getMethodValue
- Specified by:
getMethodValue
in interfaceorg.springframework.http.HttpRequest
-
getURI
- Specified by:
getURI
in interfaceorg.springframework.http.HttpRequest
-
getBodyInternal
@Nonnull protected OutputStream getBodyInternal(@Nonnull org.springframework.http.HttpHeaders headers) - Specified by:
getBodyInternal
in classorg.springframework.http.client.AbstractClientHttpRequest
-
executeInternal
@Nonnull protected MfClientHttpRequestFactoryImpl.Response executeInternal(@Nonnull org.springframework.http.HttpHeaders headers) throws IOException - Specified by:
executeInternal
in classorg.springframework.http.client.AbstractClientHttpRequest
- Throws:
IOException
-