Class JsonEndpointConfig
java.lang.Object
org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.EndpointConfigBase<JsonEndpointConfig>
org.glassfish.jersey.jackson.internal.jackson.jaxrs.json.JsonEndpointConfig
Container class for figuring out annotation-based configuration
for JAX-RS end points.
-
Field Summary
Fields inherited from class org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.EndpointConfigBase
_activeView, _config, _deserDisable, _deserEnable, _reader, _rootName, _serDisable, _serEnable, _writer
-
Constructor Summary
ModifierConstructorDescriptionprotected
JsonEndpointConfig
(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAnnotation
(Class<? extends Annotation> type, Annotation annotation, boolean forWriting) applyJSONP
(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, Annotation[] annotations) static JsonEndpointConfig
forWriting
(com.fasterxml.jackson.databind.ObjectWriter writer, Annotation[] annotations, String defaultJsonpMethod) modifyBeforeWrite
(Object value) Methods inherited from class org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.EndpointConfigBase
add, getActiveView, getReader, getRootName, getWriter, initReader, initWriter, nullIfEmpty
-
Field Details
-
_jsonp
-
-
Constructor Details
-
JsonEndpointConfig
protected JsonEndpointConfig(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)
-
-
Method Details
-
forReading
public static JsonEndpointConfig forReading(com.fasterxml.jackson.databind.ObjectReader reader, Annotation[] annotations) -
forWriting
public static JsonEndpointConfig forWriting(com.fasterxml.jackson.databind.ObjectWriter writer, Annotation[] annotations, String defaultJsonpMethod) -
addAnnotation
protected void addAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting) - Overrides:
addAnnotation
in classEndpointConfigBase<JsonEndpointConfig>
-
modifyBeforeWrite
- Specified by:
modifyBeforeWrite
in classEndpointConfigBase<JsonEndpointConfig>
-
applyJSONP
Method that will add JSONP wrapper object, if and as configured by collected annotations.
-