public class JsonDeserializationContext extends JsonMappingContext
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonDeserializationContext.Builder
Builder for
JsonDeserializationContext. |
static class |
JsonDeserializationContext.DefaultBuilder |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id,
Object instance) |
static JsonDeserializationContext.Builder |
builder() |
Logger |
getLogger() |
Object |
getObjectWithId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id) |
boolean |
isAcceptSingleValueAsArray() |
boolean |
isFailOnUnknownProperties() |
boolean |
isReadUnknownEnumValuesAsNull() |
boolean |
isUnwrapRootValue() |
boolean |
isUseBrowserTimezone() |
boolean |
isUseSafeEval() |
JsonReader |
newJsonReader(String input) |
RuntimeException |
traceError(RuntimeException cause)
Trace an error and returns a corresponding exception.
|
RuntimeException |
traceError(RuntimeException cause,
JsonReader reader)
Trace an error with current reader state and returns a corresponding exception.
|
JsonDeserializationException |
traceError(String message)
Trace an error with current reader state and returns a corresponding exception.
|
JsonDeserializationException |
traceError(String message,
JsonReader reader)
Trace an error with current reader state and returns a corresponding exception.
|
public static JsonDeserializationContext.Builder builder()
public Logger getLogger()
getLogger in class JsonMappingContextpublic boolean isFailOnUnknownProperties()
public boolean isUnwrapRootValue()
public boolean isAcceptSingleValueAsArray()
public boolean isUseSafeEval()
public boolean isReadUnknownEnumValuesAsNull()
public boolean isUseBrowserTimezone()
Builder#adjustDatesToContextTimeZone(boolean)public JsonReader newJsonReader(String input)
public JsonDeserializationException traceError(String message)
message - error messageJsonDeserializationException with the given messagepublic JsonDeserializationException traceError(String message, JsonReader reader)
message - error messagereader - current readerJsonDeserializationException with the given messagepublic RuntimeException traceError(RuntimeException cause)
cause - cause of the errorJsonDeserializationException if we wrap the exceptions, the cause otherwisepublic RuntimeException traceError(RuntimeException cause, JsonReader reader)
cause - cause of the errorreader - current readerJsonDeserializationException if we wrap the exceptions, the cause otherwisepublic void addObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id,
Object instance)
public Object getObjectWithId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id)
Copyright © 2016. All Rights Reserved.