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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected JSONP.Def _jsonp  
      • Fields inherited from class com.fasterxml.jackson.jakarta.rs.cfg.EndpointConfigBase

        _activeView, _config, _deserDisable, _deserEnable, _reader, _rootName, _serDisable, _serEnable, _writer
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected JsonEndpointConfig​(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addAnnotation​(java.lang.Class<? extends java.lang.annotation.Annotation> type, java.lang.annotation.Annotation annotation, boolean forWriting)  
      java.lang.Object applyJSONP​(java.lang.Object value)
      Method that will add JSONP wrapper object, if and as configured by collected annotations.
      static JsonEndpointConfig forReading​(com.fasterxml.jackson.databind.ObjectReader reader, java.lang.annotation.Annotation[] annotations)  
      static JsonEndpointConfig forWriting​(com.fasterxml.jackson.databind.ObjectWriter writer, java.lang.annotation.Annotation[] annotations, java.lang.String defaultJsonpMethod)  
      java.lang.Object modifyBeforeWrite​(java.lang.Object value)  
      • Methods inherited from class com.fasterxml.jackson.jakarta.rs.cfg.EndpointConfigBase

        add, getActiveView, getReader, getRootName, getWriter, initReader, initWriter, nullIfEmpty
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                                    java.lang.annotation.Annotation[] annotations)
      • forWriting

        public static JsonEndpointConfig forWriting​(com.fasterxml.jackson.databind.ObjectWriter writer,
                                                    java.lang.annotation.Annotation[] annotations,
                                                    java.lang.String defaultJsonpMethod)
      • addAnnotation

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

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

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