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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.mapfish.print.http.MfClientHttpRequestFactoryImpl.Response
executeInternal(org.springframework.http.HttpHeaders headers)
protected java.io.OutputStream
getBodyInternal(org.springframework.http.HttpHeaders headers)
org.apache.http.client.HttpClient
getClient()
org.apache.http.protocol.HttpContext
getContext()
org.springframework.http.HttpMethod
getMethod()
java.lang.String
getMethodValue()
org.apache.http.client.methods.HttpRequestBase
getUnderlyingRequest()
Obtain the request object.java.net.URI
getURI()
void
setConfiguration(Configuration configuration)
Set the current configuration object.-
Methods inherited from class org.springframework.http.client.AbstractClientHttpRequest
assertNotExecuted, execute, getBody, getHeaders
-
-
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration configuration)
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
public java.lang.String getMethodValue()
- Specified by:
getMethodValue
in interfaceorg.springframework.http.HttpRequest
-
getURI
public java.net.URI getURI()
- Specified by:
getURI
in interfaceorg.springframework.http.HttpRequest
-
getBodyInternal
protected java.io.OutputStream getBodyInternal(@Nonnull org.springframework.http.HttpHeaders headers)
- Specified by:
getBodyInternal
in classorg.springframework.http.client.AbstractClientHttpRequest
-
executeInternal
protected org.mapfish.print.http.MfClientHttpRequestFactoryImpl.Response executeInternal(@Nonnull org.springframework.http.HttpHeaders headers) throws java.io.IOException
- Specified by:
executeInternal
in classorg.springframework.http.client.AbstractClientHttpRequest
- Throws:
java.io.IOException
-
-