@Component public class FilterConfiguration extends Object
| Constructor and Description |
|---|
FilterConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
getMapper(org.springframework.http.MediaType mediaType)
Method finds ObjectMapper by MediaType
|
ObjectMapperCache |
getObjectMapperCache()
Returns ObjectMapperProvider
|
SerializationConfig |
getSerializationConfig() |
boolean |
isEnabled()
Returns state of filter
|
boolean |
isUseDefaultConverters() |
FilterConfiguration |
setEnabled(boolean enabled)
Change state of filter
If true the filter is working, else filter stops working
|
void |
setMapper(org.springframework.http.MediaType mediaType,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Add or update ObjectMapper by MediaType
|
FilterConfiguration |
setUseDefaultConverters(boolean useDefaultConverters) |
protected List<org.springframework.http.MediaType> |
supportedMediaTypes()
Returns supported media types
|
protected com.fasterxml.jackson.databind.ObjectMapper getMapper(org.springframework.http.MediaType mediaType)
mediaType - MediaType media type of http messageObjectMapper ObjectMapper if found, otherwise returns nullpublic void setMapper(org.springframework.http.MediaType mediaType,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
mediaType - MediaType media type of http messageobjectMapper - ObjectMapper ObjectMapperprotected List<org.springframework.http.MediaType> supportedMediaTypes()
List, MediaType list of supported media typespublic ObjectMapperCache getObjectMapperCache()
ObjectMapperCachepublic boolean isEnabled()
True if filter enabled, false if not
Booleanpublic FilterConfiguration setEnabled(boolean enabled)
enabled - BooleanFilterConfigurationpublic SerializationConfig getSerializationConfig()
public boolean isUseDefaultConverters()
public FilterConfiguration setUseDefaultConverters(boolean useDefaultConverters)
Copyright © 2019. All rights reserved.