Class JsonEndpointConfig


  • public class JsonEndpointConfig
    extends com.fasterxml.jackson.jakarta.rs.cfg.EndpointConfigBase<JsonEndpointConfig>
    Container class for figuring out annotation-based configuration for Jakarta-RS end points.
    • Constructor Detail

      • JsonEndpointConfig

        protected JsonEndpointConfig​(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)
    • Method Detail

      • forReading

        public static JsonEndpointConfig forReading​(com.fasterxml.jackson.databind.ObjectReader reader,
                                                    Annotation[] annotations)
      • addAnnotation

        protected void addAnnotation​(Class<? extends Annotation> type,
                                     Annotation annotation,
                                     boolean forWriting)
        Overrides:
        addAnnotation in class com.fasterxml.jackson.jakarta.rs.cfg.EndpointConfigBase<JsonEndpointConfig>
      • modifyBeforeWrite

        public Object modifyBeforeWrite​(Object value)
        Specified by:
        modifyBeforeWrite in class com.fasterxml.jackson.jakarta.rs.cfg.EndpointConfigBase<JsonEndpointConfig>
      • applyJSONP

        public Object applyJSONP​(Object value)
        Method that will add JSONP wrapper object, if and as configured by collected annotations.