Package org.elasticsearch.xcontent
Class XContentParserConfiguration
java.lang.Object
org.elasticsearch.xcontent.XContentParserConfiguration
Configuration for
XContentParser
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final XContentParserConfiguration
Creates parsers that don't supportXContentParser.namedObject(java.lang.Class<T>, java.lang.String, java.lang.Object)
, throw an exception when they see deprecated fields, that return thecurrent version
fromXContentParser.getRestApiVersion()
, and do no filtering. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.core.JsonParser
filter
(com.fasterxml.jackson.core.JsonParser parser) registry()
org.elasticsearch.core.RestApiVersion
withDeprecationHandler
(DeprecationHandler deprecationHandler) Replace the behavior ofXContentParser
when it encounters a deprecated field.withFiltering
(Set<String> includeStrings, Set<String> excludeStrings, boolean filtersMatchFieldNamesWithDots) Replace the configured filtering.withRegistry
(NamedXContentRegistry registry) Replace the registry backingXContentParser.namedObject(java.lang.Class<T>, java.lang.String, java.lang.Object)
.withRestApiVersion
(org.elasticsearch.core.RestApiVersion restApiVersion) Replace theclaimed
RestApiVersion
.
-
Field Details
-
EMPTY
Creates parsers that don't supportXContentParser.namedObject(java.lang.Class<T>, java.lang.String, java.lang.Object)
, throw an exception when they see deprecated fields, that return thecurrent version
fromXContentParser.getRestApiVersion()
, and do no filtering.
-
-
Method Details
-
withRegistry
Replace the registry backingXContentParser.namedObject(java.lang.Class<T>, java.lang.String, java.lang.Object)
. -
registry
-
withDeprecationHandler
Replace the behavior ofXContentParser
when it encounters a deprecated field. -
deprecationHandler
-
withRestApiVersion
public XContentParserConfiguration withRestApiVersion(org.elasticsearch.core.RestApiVersion restApiVersion) Replace theclaimed
RestApiVersion
. -
restApiVersion
public org.elasticsearch.core.RestApiVersion restApiVersion() -
withFiltering
public XContentParserConfiguration withFiltering(Set<String> includeStrings, Set<String> excludeStrings, boolean filtersMatchFieldNamesWithDots) Replace the configured filtering. -
filter
public com.fasterxml.jackson.core.JsonParser filter(com.fasterxml.jackson.core.JsonParser parser)
-