public class BindingHttpMessageConverter<T> extends Object implements HttpMessageConverter<T>, BeanFactoryAware
Constructor and Description |
---|
BindingHttpMessageConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Class<?> clazz,
MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
MediaType mediaType) |
List<MediaType> |
getSupportedMediaTypes() |
T |
read(Class<? extends T> clazz,
HttpInputMessage inputMessage) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setTargetType(Class<T> targetType) |
void |
write(T input,
MediaType contentType,
HttpOutputMessage outputMessage) |
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void setTargetType(Class<T> targetType)
targetType
- the tergetType to setpublic List<MediaType> getSupportedMediaTypes()
getSupportedMediaTypes
in interface HttpMessageConverter<T>
public boolean canRead(Class<?> clazz, MediaType mediaType)
canRead
in interface HttpMessageConverter<T>
public boolean canWrite(Class<?> clazz, MediaType mediaType)
canWrite
in interface HttpMessageConverter<T>
public T read(Class<? extends T> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException
read
in interface HttpMessageConverter<T>
IOException
HttpMessageNotReadableException
public void write(T input, MediaType contentType, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException
write
in interface HttpMessageConverter<T>
IOException
HttpMessageNotWritableException
Copyright © 2015. All rights reserved.