public class JsonSerializationContext extends JsonMappingContext
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonSerializationContext.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
addGenerator(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generator)
Used by generated
AbstractBeanJsonSerializer |
void |
addObjectId(java.lang.Object object,
ObjectIdSerializer<?> id) |
<T> com.fasterxml.jackson.annotation.ObjectIdGenerator<T> |
findObjectIdGenerator(com.fasterxml.jackson.annotation.ObjectIdGenerator<T> gen)
Used by generated
AbstractBeanJsonSerializer |
java.util.logging.Logger |
getLogger() |
ObjectIdSerializer<?> |
getObjectId(java.lang.Object object) |
boolean |
isOrderMapEntriesByKeys() |
boolean |
isWrapRootValue() |
boolean |
isWriteCharArraysAsJsonArrays() |
boolean |
isWriteDateKeysAsTimestamps() |
boolean |
isWriteDatesAsTimestamps() |
boolean |
isWriteEmptyJsonArrays() |
boolean |
isWriteNullMapValues() |
boolean |
isWriteSingleElemArraysUnwrapped() |
JsonWriter |
newJsonWriter() |
java.lang.RuntimeException |
traceError(java.lang.Object value,
java.lang.RuntimeException cause)
Trace an error and returns a corresponding exception.
|
java.lang.RuntimeException |
traceError(java.lang.Object value,
java.lang.RuntimeException cause,
JsonWriter writer)
Trace an error with current writer state and returns a corresponding exception.
|
JsonSerializationException |
traceError(java.lang.Object value,
java.lang.String message)
Trace an error and returns a corresponding exception.
|
JsonSerializationException |
traceError(java.lang.Object value,
java.lang.String message,
JsonWriter writer)
Trace an error with current writer state and returns a corresponding exception.
|
public java.util.logging.Logger getLogger()
getLogger in class JsonMappingContextpublic boolean isWriteDatesAsTimestamps()
public boolean isWriteDateKeysAsTimestamps()
public boolean isWrapRootValue()
public boolean isWriteCharArraysAsJsonArrays()
public boolean isWriteNullMapValues()
public boolean isWriteEmptyJsonArrays()
public boolean isOrderMapEntriesByKeys()
public boolean isWriteSingleElemArraysUnwrapped()
public JsonWriter newJsonWriter()
public JsonSerializationException traceError(java.lang.Object value, java.lang.String message)
value - current valuemessage - error messageJsonSerializationException with the given messagepublic JsonSerializationException traceError(java.lang.Object value, java.lang.String message, JsonWriter writer)
value - current valuemessage - error messagewriter - current writerJsonSerializationException with the given messagepublic java.lang.RuntimeException traceError(java.lang.Object value,
java.lang.RuntimeException cause)
value - current valuecause - cause of the errorJsonSerializationException if we wrap the exceptions, the cause otherwisepublic java.lang.RuntimeException traceError(java.lang.Object value,
java.lang.RuntimeException cause,
JsonWriter writer)
value - current valuecause - cause of the errorwriter - current writerJsonSerializationException if we wrap the exceptions, the cause otherwisepublic void addObjectId(java.lang.Object object,
ObjectIdSerializer<?> id)
public ObjectIdSerializer<?> getObjectId(java.lang.Object object)
public void addGenerator(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generator)
AbstractBeanJsonSerializergenerator - instance of generator to addpublic <T> com.fasterxml.jackson.annotation.ObjectIdGenerator<T> findObjectIdGenerator(com.fasterxml.jackson.annotation.ObjectIdGenerator<T> gen)
AbstractBeanJsonSerializergen - generator used to find equivalent generatorCopyright © 2014. All Rights Reserved.