public class HapiJsonHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<Object> implements org.springframework.http.converter.GenericHttpMessageConverter<Object>
| Modifier and Type | Field and Description |
|---|---|
static Charset |
DEFAULT_CHARSET |
| Constructor and Description |
|---|
HapiJsonHttpMessageConverter() |
| 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<?> aClass,
org.springframework.http.MediaType mediaType) |
protected Long |
getContentLength(Object object,
org.springframework.http.MediaType contentType) |
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) |
void |
write(Object o,
Type type,
org.springframework.http.MediaType mediaType,
org.springframework.http.HttpOutputMessage httpOutputMessage) |
protected void |
writeInternal(Object object,
org.springframework.http.HttpOutputMessage outputMessage) |
addDefaultHeaders, canRead, canWrite, getSupportedMediaTypes, read, setSupportedMediaTypes, writepublic static final Charset DEFAULT_CHARSET
public boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
public boolean canRead(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
public boolean canWrite(Type type, Class<?> aClass, org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>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.HttpMessageNotReadableExceptionpublic void write(Object o, Type type, org.springframework.http.MediaType mediaType, org.springframework.http.HttpOutputMessage httpOutputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionprotected void writeInternal(Object object, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionprotected org.springframework.http.MediaType getDefaultContentType(Object object) throws IOException
getDefaultContentType in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>IOExceptionprotected Long getContentLength(Object object, org.springframework.http.MediaType contentType) throws IOException
getContentLength in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>IOExceptionCopyright © 2014–2016 Healthcare Services Platform Consortium. All rights reserved.