Class EndpointConfigBase<THIS extends EndpointConfigBase<THIS>>
- java.lang.Object
-
- com.fasterxml.jackson.jakarta.rs.cfg.EndpointConfigBase<THIS>
-
- Direct Known Subclasses:
JsonEndpointConfig
public abstract class EndpointConfigBase<THIS extends EndpointConfigBase<THIS>> extends Object
Container class for figuring out annotation-based configuration for Jakarta-RS end points.
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>_activeViewprotected MapperConfig<?>_configprotected DeserializationFeature[]_deserDisableprotected DeserializationFeature[]_deserEnableprotected ObjectReader_readerprotected String_rootNameprotected SerializationFeature[]_serDisableprotected SerializationFeature[]_serEnableprotected ObjectWriter_writer
-
Constructor Summary
Constructors Modifier Constructor Description protectedEndpointConfigBase(MapperConfig<?> config)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected THISadd(Annotation[] annotations, boolean forWriting)protected voidaddAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting)Class<?>getActiveView()ObjectReadergetReader()StringgetRootName()ObjectWritergetWriter()protected THISinitReader(ObjectReader reader)protected THISinitWriter(ObjectWriter writer)abstract ObjectmodifyBeforeWrite(Object value)protected static <T> T[]nullIfEmpty(T[] arg)
-
-
-
Field Detail
-
_config
protected final MapperConfig<?> _config
-
_activeView
protected Class<?> _activeView
-
_rootName
protected String _rootName
-
_deserEnable
protected DeserializationFeature[] _deserEnable
-
_deserDisable
protected DeserializationFeature[] _deserDisable
-
_reader
protected ObjectReader _reader
-
_serEnable
protected SerializationFeature[] _serEnable
-
_serDisable
protected SerializationFeature[] _serDisable
-
_writer
protected ObjectWriter _writer
-
-
Constructor Detail
-
EndpointConfigBase
protected EndpointConfigBase(MapperConfig<?> config)
-
-
Method Detail
-
add
protected THIS add(Annotation[] annotations, boolean forWriting)
-
addAnnotation
protected void addAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting)
-
initReader
protected THIS initReader(ObjectReader reader)
-
initWriter
protected THIS initWriter(ObjectWriter writer)
-
getRootName
public String getRootName()
- Since:
- 2.3
-
getActiveView
public Class<?> getActiveView()
- Since:
- 2.3
-
getReader
public final ObjectReader getReader()
-
getWriter
public final ObjectWriter getWriter()
-
nullIfEmpty
protected static <T> T[] nullIfEmpty(T[] arg)
-
-