Uses of Class
com.jayway.jsonpath.Configuration
-
Packages that use Configuration Package Description com.jayway.jsonpath com.jayway.jsonpath.internal com.jayway.jsonpath.internal.path com.jayway.jsonpath.spi.mapper -
-
Uses of Configuration in com.jayway.jsonpath
Methods in com.jayway.jsonpath that return Configuration Modifier and Type Method Description Configuration
Configuration. addEvaluationListeners(EvaluationListener... evaluationListener)
Creates a new Configuration by the provided evaluation listeners to the current listenersConfiguration
Configuration. addOptions(Option... options)
Creates a new configuration by adding the new options to the options used in this configuration.Configuration
Configuration.ConfigurationBuilder. build()
Configuration
Predicate.PredicateContext. configuration()
Configuration to use when evaluatingConfiguration
ReadContext. configuration()
Returns the configuration used for readingConfiguration
WriteContext. configuration()
Returns the configuration used for readingstatic Configuration
Configuration. defaultConfiguration()
Creates a new configuration based on default valuesConfiguration
Configuration. jsonProvider(JsonProvider newJsonProvider)
Creates a new Configuration based on the givenJsonProvider
Configuration
Configuration. mappingProvider(MappingProvider newMappingProvider)
Creates a new Configuration based on the givenMappingProvider
Configuration
Configuration. setEvaluationListeners(EvaluationListener... evaluationListener)
Creates a new Configuration with the provided evaluation listenersConfiguration
Configuration. setOptions(Option... options)
Creates a new configuration with the provided options.Methods in com.jayway.jsonpath with parameters of type Configuration Modifier and Type Method Description <T> T
JsonPath. add(java.lang.Object jsonObject, java.lang.Object value, Configuration configuration)
Adds a new value to the Array this path points to in the provided jsonObject<T> T
JsonPath. delete(java.lang.Object jsonObject, Configuration configuration)
Deletes the object this path points to in the provided jsonObject<T> T
JsonPath. map(java.lang.Object jsonObject, MapFunction mapFunction, Configuration configuration)
Replaces the value on the given path with the result of theMapFunction
.java.lang.Object
MapFunction. map(java.lang.Object currentValue, Configuration configuration)
static DocumentContext
JsonPath. parse(java.io.File json, Configuration configuration)
Parses the given JSON input using the providedConfiguration
and returns aDocumentContext
for path evaluationstatic DocumentContext
JsonPath. parse(java.io.InputStream json, Configuration configuration)
Parses the given JSON input using the providedConfiguration
and returns aDocumentContext
for path evaluationstatic DocumentContext
JsonPath. parse(java.lang.Object json, Configuration configuration)
Parses the given JSON input using the providedConfiguration
and returns aDocumentContext
for path evaluationstatic DocumentContext
JsonPath. parse(java.lang.String json, Configuration configuration)
Parses the given JSON input using the providedConfiguration
and returns aDocumentContext
for path evaluationstatic DocumentContext
JsonPath. parse(java.net.URL json, Configuration configuration)
Parses the given JSON input using the providedConfiguration
and returns aDocumentContext
for path evaluation<T> T
JsonPath. put(java.lang.Object jsonObject, java.lang.String key, java.lang.Object value, Configuration configuration)
Adds or updates the Object this path points to in the provided jsonObject with a key with a value<T> T
JsonPath. read(java.io.File jsonFile, Configuration configuration)
Applies this JsonPath to the provided json file<T> T
JsonPath. read(java.io.InputStream jsonInputStream, Configuration configuration)
Applies this JsonPath to the provided json input stream<T> T
JsonPath. read(java.io.InputStream jsonInputStream, java.lang.String charset, Configuration configuration)
Applies this JsonPath to the provided json input stream<T> T
JsonPath. read(java.lang.Object jsonObject, Configuration configuration)
Applies this JsonPath to the provided json document.<T> T
JsonPath. read(java.lang.String json, Configuration configuration)
Applies this JsonPath to the provided json string<T> T
JsonPath. renameKey(java.lang.Object jsonObject, java.lang.String oldKeyName, java.lang.String newKeyName, Configuration configuration)
private <T> T
JsonPath. resultByConfiguration(java.lang.Object jsonObject, Configuration configuration, EvaluationContext evaluationContext)
<T> T
JsonPath. set(java.lang.Object jsonObject, java.lang.Object newVal, Configuration configuration)
Set the value this path points to in the provided jsonObjectstatic ParseContext
JsonPath. using(Configuration configuration)
Creates aParseContext
that can be used to parse a given JSON input. -
Uses of Configuration in com.jayway.jsonpath.internal
Fields in com.jayway.jsonpath.internal declared as Configuration Modifier and Type Field Description private Configuration
JsonContext. configuration
Methods in com.jayway.jsonpath.internal that return Configuration Modifier and Type Method Description Configuration
EvaluationContext. configuration()
Configuration
JsonContext. configuration()
Methods in com.jayway.jsonpath.internal with parameters of type Configuration Modifier and Type Method Description abstract void
PathRef. add(java.lang.Object newVal, Configuration configuration)
void
PathRef.ArrayIndexPathRef. add(java.lang.Object value, Configuration configuration)
void
PathRef.ObjectMultiPropertyPathRef. add(java.lang.Object newVal, Configuration configuration)
void
PathRef.ObjectPropertyPathRef. add(java.lang.Object value, Configuration configuration)
void
PathRef.RootPathRef. add(java.lang.Object newVal, Configuration configuration)
private <T> T
JsonContext. convert(java.lang.Object obj, TypeRef<T> targetType, Configuration configuration)
private <T> T
JsonContext. convert(java.lang.Object obj, java.lang.Class<T> targetType, Configuration configuration)
void
PathRef.ArrayIndexPathRef. convert(MapFunction mapFunction, Configuration configuration)
abstract void
PathRef. convert(MapFunction mapFunction, Configuration configuration)
void
PathRef.ObjectMultiPropertyPathRef. convert(MapFunction mapFunction, Configuration configuration)
void
PathRef.ObjectPropertyPathRef. convert(MapFunction mapFunction, Configuration configuration)
void
PathRef.RootPathRef. convert(MapFunction mapFunction, Configuration configuration)
void
PathRef.ArrayIndexPathRef. delete(Configuration configuration)
abstract void
PathRef. delete(Configuration configuration)
void
PathRef.ObjectMultiPropertyPathRef. delete(Configuration configuration)
void
PathRef.ObjectPropertyPathRef. delete(Configuration configuration)
void
PathRef.RootPathRef. delete(Configuration configuration)
EvaluationContext
Path. evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration)
Evaluates this pathEvaluationContext
Path. evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration, boolean forUpdate)
Evaluates this pathvoid
PathRef.ArrayIndexPathRef. put(java.lang.String key, java.lang.Object value, Configuration configuration)
void
PathRef.ObjectMultiPropertyPathRef. put(java.lang.String key, java.lang.Object newVal, Configuration configuration)
void
PathRef.ObjectPropertyPathRef. put(java.lang.String key, java.lang.Object value, Configuration configuration)
abstract void
PathRef. put(java.lang.String key, java.lang.Object newVal, Configuration configuration)
void
PathRef.RootPathRef. put(java.lang.String key, java.lang.Object newVal, Configuration configuration)
protected void
PathRef. renameInMap(java.lang.Object targetMap, java.lang.String oldKeyName, java.lang.String newKeyName, Configuration configuration)
void
PathRef.ArrayIndexPathRef. renameKey(java.lang.String oldKeyName, java.lang.String newKeyName, Configuration configuration)
void
PathRef.ObjectMultiPropertyPathRef. renameKey(java.lang.String oldKeyName, java.lang.String newKeyName, Configuration configuration)
void
PathRef.ObjectPropertyPathRef. renameKey(java.lang.String oldKeyName, java.lang.String newKeyName, Configuration configuration)
abstract void
PathRef. renameKey(java.lang.String oldKey, java.lang.String newKeyName, Configuration configuration)
void
PathRef.RootPathRef. renameKey(java.lang.String oldKeyName, java.lang.String newKeyName, Configuration configuration)
void
PathRef.ArrayIndexPathRef. set(java.lang.Object newVal, Configuration configuration)
void
PathRef.ObjectMultiPropertyPathRef. set(java.lang.Object newVal, Configuration configuration)
void
PathRef.ObjectPropertyPathRef. set(java.lang.Object newVal, Configuration configuration)
void
PathRef.RootPathRef. set(java.lang.Object newVal, Configuration configuration)
abstract void
PathRef. set(java.lang.Object newVal, Configuration configuration)
Constructors in com.jayway.jsonpath.internal with parameters of type Configuration Constructor Description JsonContext(Configuration configuration)
JsonContext(java.lang.Object json, Configuration configuration)
-
Uses of Configuration in com.jayway.jsonpath.internal.path
Fields in com.jayway.jsonpath.internal.path declared as Configuration Modifier and Type Field Description private Configuration
EvaluationContextImpl. configuration
private Configuration
PredicateContextImpl. configuration
Methods in com.jayway.jsonpath.internal.path that return Configuration Modifier and Type Method Description Configuration
EvaluationContextImpl. configuration()
Configuration
PredicateContextImpl. configuration()
Methods in com.jayway.jsonpath.internal.path with parameters of type Configuration Modifier and Type Method Description boolean
PredicatePathToken. accept(java.lang.Object obj, java.lang.Object root, Configuration configuration, EvaluationContextImpl evaluationContext)
EvaluationContext
CompiledPath. evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration)
EvaluationContext
CompiledPath. evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration, boolean forUpdate)
Constructors in com.jayway.jsonpath.internal.path with parameters of type Configuration Constructor Description EvaluationContextImpl(Path path, java.lang.Object rootDocument, Configuration configuration, boolean forUpdate)
PredicateContextImpl(java.lang.Object contextDocument, java.lang.Object rootDocument, Configuration configuration, java.util.HashMap<Path,java.lang.Object> documentPathCache)
-
Uses of Configuration in com.jayway.jsonpath.spi.mapper
Methods in com.jayway.jsonpath.spi.mapper with parameters of type Configuration Modifier and Type Method Description <T> T
GsonMappingProvider. map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
<T> T
GsonMappingProvider. map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
<T> T
JacksonMappingProvider. map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
<T> T
JacksonMappingProvider. map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
<T> T
JsonSmartMappingProvider. map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
<T> T
JsonSmartMappingProvider. map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
<T> T
MappingProvider. map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
<T> T
MappingProvider. map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
-