public class StructuredJsonMessageConverter extends Object implements org.springframework.http.converter.HttpMessageConverter<Object>
Constructor and Description |
---|
StructuredJsonMessageConverter(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
Object |
read(Class<? extends Object> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
write(Object t,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public StructuredJsonMessageConverter(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter delegate)
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>
IOException
org.springframework.http.converter.HttpMessageNotReadableException
public void write(Object t, 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>
IOException
org.springframework.http.converter.HttpMessageNotWritableException
Copyright © 2015–2017 42 BV. All rights reserved.