public class JsonEndpointConfig extends EndpointConfigBase<JsonEndpointConfig>
| Modifier and Type | Field and Description |
|---|---|
protected JSONP.Def |
_jsonp |
_activeView, _deserDisable, _deserEnable, _reader, _rootName, _serDisable, _serEnable, _writer| Modifier | Constructor and Description |
|---|---|
protected |
JsonEndpointConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAnnotation(Class<? extends Annotation> type,
Annotation annotation,
boolean forWriting) |
Object |
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) |
Object |
modifyBeforeWrite(Object value) |
add, getActiveView, getReader, getRootName, getWriter, initReader, initWriter, nullIfEmptyprotected JSONP.Def _jsonp
public static JsonEndpointConfig forReading(com.fasterxml.jackson.databind.ObjectReader reader, Annotation[] annotations)
public static JsonEndpointConfig forWriting(com.fasterxml.jackson.databind.ObjectWriter writer, Annotation[] annotations, String defaultJsonpMethod)
protected void addAnnotation(Class<? extends Annotation> type, Annotation annotation, boolean forWriting)
addAnnotation in class EndpointConfigBase<JsonEndpointConfig>public Object modifyBeforeWrite(Object value)
modifyBeforeWrite in class EndpointConfigBase<JsonEndpointConfig>Copyright © 2014–2015 FasterXML. All rights reserved.