类 MappingJacksonInputMessage
- java.lang.Object
- org.springframework.http.converter.json.MappingJacksonInputMessage
- 所有已实现的接口:
HttpInputMessage,HttpMessage
public class MappingJacksonInputMessage extends Object implements HttpInputMessage
HttpInputMessagethat can eventually stores a Jackson view that will be used to deserialize the message.- 从以下版本开始:
- 4.2
- 作者:
- Sebastien Deleuze
构造器概要
构造器 构造器 说明 MappingJacksonInputMessage(InputStream body, HttpHeaders headers)MappingJacksonInputMessage(InputStream body, HttpHeaders headers, Class<?> deserializationView)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 InputStreamgetBody()Return the body of the message as an input stream.Class<?>getDeserializationView()HttpHeadersgetHeaders()Return the headers of this message.voidsetDeserializationView(Class<?> deserializationView)
构造器详细资料
MappingJacksonInputMessage
public MappingJacksonInputMessage(InputStream body, HttpHeaders headers)
MappingJacksonInputMessage
public MappingJacksonInputMessage(InputStream body, HttpHeaders headers, Class<?> deserializationView)
方法详细资料
getBody
public InputStream getBody() throws IOException
从接口复制的说明:HttpInputMessageReturn the body of the message as an input stream.- 指定者:
getBody在接口中HttpInputMessage- 返回:
- the input stream body (never
null) - 抛出:
IOException- in case of I/O errors
getHeaders
public HttpHeaders getHeaders()
从接口复制的说明:HttpMessageReturn the headers of this message.- 指定者:
getHeaders在接口中HttpMessage- 返回:
- a corresponding HttpHeaders object (never
null)
setDeserializationView
public void setDeserializationView(@Nullable Class<?> deserializationView)
getDeserializationView
@Nullable public Class<?> getDeserializationView()