public class JsonEndpointConfig extends EndpointConfigBase<JsonEndpointConfig>
Modifier and Type | Field and Description |
---|---|
protected JSONP.Def |
_jsonp |
_activeView, _config, _deserDisable, _deserEnable, _reader, _rootName, _serDisable, _serEnable, _writer
Modifier | Constructor and Description |
---|---|
protected |
JsonEndpointConfig(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config) |
Modifier and Type | Method and 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) |
add, getActiveView, getReader, getRootName, getWriter, initReader, initWriter, nullIfEmpty
protected JSONP.Def _jsonp
protected JsonEndpointConfig(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config)
public static JsonEndpointConfig forReading(com.fasterxml.jackson.databind.ObjectReader reader, java.lang.annotation.Annotation[] annotations)
public static JsonEndpointConfig forWriting(com.fasterxml.jackson.databind.ObjectWriter writer, java.lang.annotation.Annotation[] annotations, java.lang.String defaultJsonpMethod)
protected void addAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> type, java.lang.annotation.Annotation annotation, boolean forWriting)
addAnnotation
in class EndpointConfigBase<JsonEndpointConfig>
public java.lang.Object modifyBeforeWrite(java.lang.Object value)
modifyBeforeWrite
in class EndpointConfigBase<JsonEndpointConfig>
public java.lang.Object applyJSONP(java.lang.Object value)