Class JsonEndpointConfig

java.lang.Object
tools.jackson.jaxrs.cfg.EndpointConfigBase<JsonEndpointConfig>
tools.jackson.jaxrs.json.JsonEndpointConfig

public class JsonEndpointConfig extends tools.jackson.jaxrs.cfg.EndpointConfigBase<JsonEndpointConfig>
Container class for figuring out annotation-based configuration for JAX-RS end points.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected tools.jackson.jaxrs.json.annotation.JSONP.Def
     

    Fields inherited from class tools.jackson.jaxrs.cfg.EndpointConfigBase

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

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

    Modifier and Type
    Method
    Description
    protected void
    addAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting)
     
    Method that will add JSONP wrapper object, if and as configured by collected annotations.
    forReading(tools.jackson.databind.ObjectReader reader, Annotation[] annotations)
     
    forWriting(tools.jackson.databind.ObjectWriter writer, Annotation[] annotations, String defaultJsonpMethod)
     
     

    Methods inherited from class tools.jackson.jaxrs.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
  • Field Details

    • _jsonp

      protected tools.jackson.jaxrs.json.annotation.JSONP.Def _jsonp
  • Constructor Details

    • JsonEndpointConfig

      protected JsonEndpointConfig(tools.jackson.databind.cfg.MapperConfig<?> config)
  • Method Details

    • forReading

      public static JsonEndpointConfig forReading(tools.jackson.databind.ObjectReader reader, Annotation[] annotations)
    • forWriting

      public static JsonEndpointConfig forWriting(tools.jackson.databind.ObjectWriter writer, Annotation[] annotations, String defaultJsonpMethod)
    • addAnnotation

      protected void addAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting)
      Overrides:
      addAnnotation in class tools.jackson.jaxrs.cfg.EndpointConfigBase<JsonEndpointConfig>
    • modifyBeforeWrite

      public Object modifyBeforeWrite(Object value)
      Specified by:
      modifyBeforeWrite in class tools.jackson.jaxrs.cfg.EndpointConfigBase<JsonEndpointConfig>
    • applyJSONP

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