public class RequestDataMessageConvert extends org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
| 构造器和说明 |
|---|
RequestDataMessageConvert() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canRead(Type type,
Class<?> contextClass,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Type type,
Class<?> clazz,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
Object |
read(Type type,
Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage) |
Object |
readInternal(Class<?> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
protected boolean |
supports(Class<?> clazz) |
void |
writeInternal(Object o,
Type type,
org.springframework.http.HttpOutputMessage outputMessage) |
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, read, setDefaultCharset, setSupportedMediaTypes, writepublic boolean canRead(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
public boolean canWrite(Type type, Class<?> clazz, org.springframework.http.MediaType mediaType)
public List<org.springframework.http.MediaType> getSupportedMediaTypes()
protected boolean supports(Class<?> clazz)
supports 在类中 org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>public Object readInternal(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
readInternal 在类中 org.springframework.http.converter.AbstractHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void writeInternal(Object o, Type type, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
writeInternal 在类中 org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionpublic Object read(Type type, Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionCopyright © 2020. All rights reserved.