public class DslJsonMessageConverter extends org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object> implements org.springframework.http.converter.GenericHttpMessageConverter<Object>
| Constructor and Description |
|---|
DslJsonMessageConverter(org.revenj.serialization.json.DslJsonSerialization serializer) |
| 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) |
protected org.springframework.http.MediaType |
getDefaultContentType(Object object) |
Object |
read(Type type,
Class<?> contextClass,
org.springframework.http.HttpInputMessage inputMessage) |
protected Object |
readInternal(Class<?> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
protected boolean |
supports(Class<?> clazz) |
protected void |
writeInternal(Object instance,
Type type,
org.springframework.http.HttpOutputMessage outputMessage) |
write, writeInternaladdDefaultHeaders, canRead, canWrite, getContentLength, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DslJsonMessageConverter(org.revenj.serialization.json.DslJsonSerialization serializer)
public boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
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 boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
protected boolean supports(Class<?> clazz)
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>protected 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>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic Object read(Type type, 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.HttpMessageNotReadableExceptionprotected void writeInternal(Object instance, Type type, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
writeInternal in class org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionprotected org.springframework.http.MediaType getDefaultContentType(Object object) throws IOException
getDefaultContentType in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>IOExceptionCopyright © 2017. All rights reserved.