Package tools.jackson.jakarta.rs.cfg
Class EndpointConfigBase<THIS extends EndpointConfigBase<THIS>>
java.lang.Object
tools.jackson.jakarta.rs.cfg.EndpointConfigBase<THIS>
Container class for figuring out annotation-based configuration
for Jakarta-RS end points.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?>protected final tools.jackson.databind.cfg.MapperConfig<?>protected tools.jackson.databind.DeserializationFeature[]protected tools.jackson.databind.DeserializationFeature[]protected tools.jackson.databind.ObjectReaderprotected Stringprotected tools.jackson.databind.SerializationFeature[]protected tools.jackson.databind.SerializationFeature[]protected tools.jackson.databind.ObjectWriter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEndpointConfigBase(tools.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 tools.jackson.databind.ObjectReaderfinal tools.jackson.databind.ObjectWriterprotected THISinitReader(tools.jackson.databind.ObjectReader reader) protected THISinitWriter(tools.jackson.databind.ObjectWriter writer) abstract ObjectmodifyBeforeWrite(Object value) protected static <T> T[]nullIfEmpty(T[] arg)
-
Field Details
-
_config
protected final tools.jackson.databind.cfg.MapperConfig<?> _config -
_activeView
-
_rootName
-
_deserEnable
protected tools.jackson.databind.DeserializationFeature[] _deserEnable -
_deserDisable
protected tools.jackson.databind.DeserializationFeature[] _deserDisable -
_reader
protected tools.jackson.databind.ObjectReader _reader -
_serEnable
protected tools.jackson.databind.SerializationFeature[] _serEnable -
_serDisable
protected tools.jackson.databind.SerializationFeature[] _serDisable -
_writer
protected tools.jackson.databind.ObjectWriter _writer
-
-
Constructor Details
-
EndpointConfigBase
protected EndpointConfigBase(tools.jackson.databind.cfg.MapperConfig<?> config)
-
-
Method Details
-
add
-
addAnnotation
protected void addAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting) -
initReader
-
initWriter
-
getRootName
-
getActiveView
-
getReader
public final tools.jackson.databind.ObjectReader getReader() -
getWriter
public final tools.jackson.databind.ObjectWriter getWriter() -
modifyBeforeWrite
-
nullIfEmpty
protected static <T> T[] nullIfEmpty(T[] arg)
-