public class AlpsJsonHttpMessageConverter extends org.springframework.http.converter.json.MappingJackson2HttpMessageConverter implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
| Constructor and Description |
|---|
AlpsJsonHttpMessageConverter(RootResourceInformationToAlpsDescriptorConverter converter)
Creates a new
AlpsJsonHttpMessageConverter for the given Converter. |
| Modifier and Type | Method and Description |
|---|---|
Object |
beforeBodyWrite(Object body,
org.springframework.core.MethodParameter returnType,
org.springframework.http.MediaType selectedContentType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType,
org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response) |
boolean |
canRead(Type type,
Class<?> contextClass,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
supports(org.springframework.core.MethodParameter returnType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
setJsonPrefix, setPrefixJson, writePrefix, writeSuffixcanRead, getContentLength, getDefaultContentType, getJavaType, getJsonEncoding, getObjectMapper, init, logWarningIfNecessary, read, readInternal, setObjectMapper, setPrettyPrint, writeInternalcanWrite, supports, write, writeInternaladdDefaultHeaders, canRead, canWrite, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writepublic AlpsJsonHttpMessageConverter(RootResourceInformationToAlpsDescriptorConverter converter)
AlpsJsonHttpMessageConverter for the given Converter.converter - must not be null.public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<Object>canWrite in class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverterpublic boolean canRead(Type type, Class<?> contextClass, org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.GenericHttpMessageConverter<Object>canRead in class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverterpublic Object beforeBodyWrite(Object body, org.springframework.core.MethodParameter returnType, org.springframework.http.MediaType selectedContentType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType, org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response)
beforeBodyWrite in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.