public class SpearalMessageConverter
extends java.lang.Object
implements org.springframework.http.converter.HttpMessageConverter<java.lang.Object>
| Constructor and Description |
|---|
SpearalMessageConverter(org.spearal.SpearalFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(java.lang.Class<?> type,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(java.lang.Class<?> type,
org.springframework.http.MediaType mediaType) |
java.util.List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
java.lang.Object |
read(java.lang.Class<? extends java.lang.Object> type,
org.springframework.http.HttpInputMessage inputMessage) |
void |
write(java.lang.Object obj,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public SpearalMessageConverter(org.spearal.SpearalFactory factory)
public boolean canWrite(java.lang.Class<?> type,
org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<java.lang.Object>public boolean canRead(java.lang.Class<?> type,
org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.HttpMessageConverter<java.lang.Object>public void write(java.lang.Object obj,
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<java.lang.Object>java.io.IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionpublic java.lang.Object read(java.lang.Class<? extends java.lang.Object> type,
org.springframework.http.HttpInputMessage inputMessage)
throws java.io.IOException,
org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.HttpMessageConverter<java.lang.Object>java.io.IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<java.lang.Object>