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 SummaryFields inherited from class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverterdefaultObjectMapperFields inherited from class org.springframework.http.converter.AbstractHttpMessageConverterlogger
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a newProjectingJackson2HttpMessageConverterusing 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 newProjectingJackson2HttpMessageConverterfor the givenObjectMapper.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, 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.voidsetBeanClassLoader(ClassLoader classLoader) Deprecated, for removal: This API element is subject to removal in a future version.voidsetBeanFactory(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.MappingJackson2HttpMessageConvertergetMediaTypesForProblemDetail, setJsonPrefix, setPrefixJson, writePrefixMethods inherited from class org.springframework.http.converter.json.AbstractJackson2HttpMessageConvertercanRead, customizeReader, customizeWriter, getCharset, getContentLength, getDefaultContentType, getJavaType, getJsonEncoding, getObjectMapper, getObjectMappersForType, getSupportedMediaTypes, logWarningIfNecessary, readInternal, registerObjectMappersForType, setObjectMapper, setPrettyPrint, setSupportedMediaTypes, supportsRepeatableWrites, writeInternal, writeSuffixMethods inherited from class org.springframework.http.converter.AbstractGenericHttpMessageConvertercanWrite, supports, write, writeInternalMethods inherited from class org.springframework.http.converter.AbstractHttpMessageConverteraddDefaultHeaders, canRead, canWrite, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, writeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConvertergetSupportedMediaTypes, read, write
- 
Constructor Details- 
ProjectingJackson2HttpMessageConverterpublic ProjectingJackson2HttpMessageConverter()Deprecated, for removal: This API element is subject to removal in a future version.Creates a newProjectingJackson2HttpMessageConverterusing a defaultObjectMapper.
- 
ProjectingJackson2HttpMessageConverterpublic ProjectingJackson2HttpMessageConverter(com.fasterxml.jackson.databind.ObjectMapper mapper) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newProjectingJackson2HttpMessageConverterfor the givenObjectMapper.- Parameters:
- mapper- must not be null.
 
 
- 
- 
Method Details- 
setBeanClassLoaderDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- setBeanClassLoaderin interface- BeanClassLoaderAware
 
- 
setBeanFactoryDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Throws:
- BeansException
 
- 
canReadDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- canReadin interface- GenericHttpMessageConverter<Object>
- Overrides:
- canReadin class- AbstractJackson2HttpMessageConverter
 
- 
canWriteDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- canWritein interface- HttpMessageConverter<Object>
- Overrides:
- canWritein class- AbstractJackson2HttpMessageConverter
 
- 
readpublic 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:
- readin interface- GenericHttpMessageConverter<Object>
- Overrides:
- readin class- AbstractJackson2HttpMessageConverter
- Throws:
- IOException
- HttpMessageNotReadableException
 
 
- 
ProjectingJacksonHttpMessageConverter.