Package com.fasterxml.jackson.jaxrs.cfg
Class EndpointConfigBase<THIS extends EndpointConfigBase<THIS>>
java.lang.Object
com.fasterxml.jackson.jaxrs.cfg.EndpointConfigBase<THIS>
- Direct Known Subclasses:
CBOREndpointConfig,JsonEndpointConfig,SmileEndpointConfig,XMLEndpointConfig,YAMLEndpointConfig
Container class for figuring out annotation-based configuration
for JAX-RS end points.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?> protected final com.fasterxml.jackson.databind.cfg.MapperConfig<?> protected com.fasterxml.jackson.databind.DeserializationFeature[]protected com.fasterxml.jackson.databind.DeserializationFeature[]protected com.fasterxml.jackson.databind.ObjectReaderprotected Stringprotected com.fasterxml.jackson.databind.SerializationFeature[]protected com.fasterxml.jackson.databind.SerializationFeature[]protected com.fasterxml.jackson.databind.ObjectWriter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEndpointConfigBase(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) -
Method Summary
Modifier and TypeMethodDescriptionprotected THISadd(Annotation[] annotations, boolean forWriting) protected voidaddAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting) Class<?> final com.fasterxml.jackson.databind.ObjectReaderfinal com.fasterxml.jackson.databind.ObjectWriterprotected THISinitReader(com.fasterxml.jackson.databind.ObjectReader reader) protected THISinitWriter(com.fasterxml.jackson.databind.ObjectWriter writer) abstract ObjectmodifyBeforeWrite(Object value) protected static <T> T[]nullIfEmpty(T[] arg)
-
Field Details
-
_config
protected final com.fasterxml.jackson.databind.cfg.MapperConfig<?> _config- Since:
- 2.6
-
_activeView
-
_rootName
-
_deserEnable
protected com.fasterxml.jackson.databind.DeserializationFeature[] _deserEnable -
_deserDisable
protected com.fasterxml.jackson.databind.DeserializationFeature[] _deserDisable -
_reader
protected com.fasterxml.jackson.databind.ObjectReader _reader -
_serEnable
protected com.fasterxml.jackson.databind.SerializationFeature[] _serEnable -
_serDisable
protected com.fasterxml.jackson.databind.SerializationFeature[] _serDisable -
_writer
protected com.fasterxml.jackson.databind.ObjectWriter _writer
-
-
Constructor Details
-
EndpointConfigBase
protected EndpointConfigBase(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)
-
-
Method Details
-
add
-
addAnnotation
protected void addAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting) -
initReader
-
initWriter
-
getRootName
- Since:
- 2.3
-
getActiveView
- Since:
- 2.3
-
getReader
public final com.fasterxml.jackson.databind.ObjectReader getReader() -
getWriter
public final com.fasterxml.jackson.databind.ObjectWriter getWriter() -
modifyBeforeWrite
-
nullIfEmpty
protected static <T> T[] nullIfEmpty(T[] arg)
-