Package org.springframework.data.web
Class ProjectingJackson2HttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<T>
org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
org.springframework.data.web.ProjectingJackson2HttpMessageConverter
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,GenericHttpMessageConverter<Object>
,HttpMessageConverter<Object>
@Deprecated(since="4.0",
forRemoval=true)
public class ProjectingJackson2HttpMessageConverter
extends MappingJackson2HttpMessageConverter
implements BeanClassLoaderAware, BeanFactoryAware
Deprecated, for removal: This API element is subject to removal in a future version.
HttpMessageConverter
implementation to enable projected JSON binding to interfaces annotated with
ProjectedPayload
.- Since:
- 1.13
- Author:
- Oliver Gierke, Christoph Strobl
-
Field Summary
Fields inherited from class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
defaultObjectMapper
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a newProjectingJackson2HttpMessageConverter
using a defaultObjectMapper
.ProjectingJackson2HttpMessageConverter
(com.fasterxml.jackson.databind.ObjectMapper mapper) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newProjectingJackson2HttpMessageConverter
for the givenObjectMapper
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.read
(Type type, @Nullable Class<?> contextClass, HttpInputMessage inputMessage) Deprecated, for removal: This API element is subject to removal in a future version.void
setBeanClassLoader
(ClassLoader classLoader) Deprecated, for removal: This API element is subject to removal in a future version.void
setBeanFactory
(BeanFactory beanFactory) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
getMediaTypesForProblemDetail, setJsonPrefix, setPrefixJson, writePrefix
Methods inherited from class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
canRead, customizeReader, customizeWriter, getCharset, getContentLength, getDefaultContentType, getJavaType, getJsonEncoding, getObjectMapper, getObjectMappersForType, getSupportedMediaTypes, logWarningIfNecessary, readInternal, registerObjectMappersForType, setObjectMapper, setPrettyPrint, setSupportedMediaTypes, supportsRepeatableWrites, writeInternal, writeSuffix
Methods inherited from class org.springframework.http.converter.AbstractGenericHttpMessageConverter
canWrite, supports, write, writeInternal
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canWrite, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, write
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, read, write
-
Constructor Details
-
ProjectingJackson2HttpMessageConverter
public ProjectingJackson2HttpMessageConverter()Deprecated, for removal: This API element is subject to removal in a future version.Creates a newProjectingJackson2HttpMessageConverter
using a defaultObjectMapper
. -
ProjectingJackson2HttpMessageConverter
public ProjectingJackson2HttpMessageConverter(com.fasterxml.jackson.databind.ObjectMapper mapper) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newProjectingJackson2HttpMessageConverter
for the givenObjectMapper
.- Parameters:
mapper
- must not be null.
-
-
Method Details
-
setBeanClassLoader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setBeanClassLoader
in interfaceBeanClassLoaderAware
-
setBeanFactory
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
canRead
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
canRead
in interfaceGenericHttpMessageConverter<Object>
- Overrides:
canRead
in classAbstractJackson2HttpMessageConverter
-
canWrite
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
canWrite
in interfaceHttpMessageConverter<Object>
- Overrides:
canWrite
in classAbstractJackson2HttpMessageConverter
-
read
public Object read(Type type, @Nullable Class<?> contextClass, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
read
in interfaceGenericHttpMessageConverter<Object>
- Overrides:
read
in classAbstractJackson2HttpMessageConverter
- Throws:
IOException
HttpMessageNotReadableException
-
ProjectingJacksonHttpMessageConverter
.