public class CseHttpMessageConverter extends Object implements org.springframework.http.converter.GenericHttpMessageConverter<Object>
| Constructor and Description |
|---|
CseHttpMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
canRead(Type type,
Class<?> contextClass,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Type type,
Class<?> clazz,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
Object |
read(Class<? extends Object> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
Object |
read(Type type,
Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage) |
void |
write(Object o,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
void |
write(Object o,
Type type,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.HttpMessageConverter<Object>public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<Object>public List<org.springframework.http.MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<Object>public Object read(Class<? extends Object> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.HttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void write(Object o, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.HttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionpublic boolean canRead(Type type, @Nullable Class<?> contextClass, @Nullable org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>public Object read(Type type, @Nullable Class<?> contextClass, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic boolean canWrite(@Nullable
Type type,
Class<?> clazz,
@Nullable
org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>public void write(Object o, @Nullable Type type, @Nullable org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2017–2020 The Apache Software Foundation. All rights reserved.