Class StructuredJsonMessageConverter
java.lang.Object
io.beanmapper.spring.web.converter.StructuredJsonMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Object>
public class StructuredJsonMessageConverter
extends Object
implements org.springframework.http.converter.HttpMessageConverter<Object>
Wraps the default Jackson2 message converter with read
functionality that returns both the message and property
names.
- Since:
- Nov 25, 2015
- Author:
- Jeroen van Schagen
-
Constructor Summary
ConstructorsConstructorDescriptionStructuredJsonMessageConverter
(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter delegate) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
StructuredJsonMessageConverter
public StructuredJsonMessageConverter(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter delegate)
-
-
Method Details
-
canRead
- Specified by:
canRead
in interfaceorg.springframework.http.converter.HttpMessageConverter<Object>
-
canWrite
- Specified by:
canWrite
in interfaceorg.springframework.http.converter.HttpMessageConverter<Object>
-
getSupportedMediaTypes
- Specified by:
getSupportedMediaTypes
in interfaceorg.springframework.http.converter.HttpMessageConverter<Object>
-
read
public Object read(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
read
in interfaceorg.springframework.http.converter.HttpMessageConverter<Object>
- Throws:
IOException
org.springframework.http.converter.HttpMessageNotReadableException
-
write
public void write(Object t, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
write
in interfaceorg.springframework.http.converter.HttpMessageConverter<Object>
- Throws:
IOException
org.springframework.http.converter.HttpMessageNotWritableException
-