public class MappingJacksonInputMessage extends java.lang.Object implements HttpInputMessage
HttpInputMessage
that can eventually stores a Jackson view that will be used
to deserialize the message.Constructor and Description |
---|
MappingJacksonInputMessage(java.io.InputStream body,
HttpHeaders headers) |
MappingJacksonInputMessage(java.io.InputStream body,
HttpHeaders headers,
java.lang.Class<?> deserializationView) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getBody()
Return the body of the message as an input stream.
|
java.lang.Class<?> |
getDeserializationView() |
HttpHeaders |
getHeaders()
Return the headers of this message.
|
void |
setDeserializationView(java.lang.Class<?> deserializationView) |
public MappingJacksonInputMessage(java.io.InputStream body, HttpHeaders headers)
public MappingJacksonInputMessage(java.io.InputStream body, HttpHeaders headers, java.lang.Class<?> deserializationView)
public java.io.InputStream getBody() throws java.io.IOException
HttpInputMessage
getBody
in interface HttpInputMessage
null
)java.io.IOException
- in case of I/O Errorspublic HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public void setDeserializationView(@Nullable java.lang.Class<?> deserializationView)
@Nullable public java.lang.Class<?> getDeserializationView()