public class BindingHttpMessageConverter<T>
extends java.lang.Object
implements org.springframework.http.converter.HttpMessageConverter<T>, org.springframework.beans.factory.BeanFactoryAware
| Constructor and Description |
|---|
BindingHttpMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(java.lang.Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(java.lang.Class<?> clazz,
org.springframework.http.MediaType mediaType) |
java.util.List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
T |
read(java.lang.Class<? extends T> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setTargetType(java.lang.Class<T> targetType) |
void |
write(T input,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setTargetType(java.lang.Class<T> targetType)
targetType - the tergetType to setpublic java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<T>public boolean canRead(java.lang.Class<?> clazz,
org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.HttpMessageConverter<T>public boolean canWrite(java.lang.Class<?> clazz,
org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<T>public T read(java.lang.Class<? extends T> clazz, org.springframework.http.HttpInputMessage inputMessage) throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.HttpMessageConverter<T>java.io.IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void write(T input, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.HttpMessageConverter<T>java.io.IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2015. All Rights Reserved.