public class RequestDataMessageConvert extends org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
Constructor and Description |
---|
RequestDataMessageConvert() |
Modifier and Type | Method and Description |
---|---|
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) |
write, writeInternal
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, read, setDefaultCharset, setSupportedMediaTypes, write
public 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
in class org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
public Object readInternal(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
readInternal
in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
IOException
org.springframework.http.converter.HttpMessageNotReadableException
public void writeInternal(Object o, Type type, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
writeInternal
in class org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
IOException
org.springframework.http.converter.HttpMessageNotWritableException
public Object read(Type type, Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
IOException
org.springframework.http.converter.HttpMessageNotReadableException
Copyright © 2018. All rights reserved.