Module org.elasticsearch.xcontent
Package org.elasticsearch.xcontent
Interface XContentParserConfiguration
public interface 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 TypeMethodDescriptionregistry()
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
(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
NamedXContentRegistry registry() -
withDeprecationHandler
Replace the behavior ofXContentParser
when it encounters a deprecated field. -
deprecationHandler
DeprecationHandler deprecationHandler() -
withRestApiVersion
Replace theclaimed
RestApiVersion
. -
restApiVersion
RestApiVersion restApiVersion() -
withFiltering
XContentParserConfiguration withFiltering(Set<String> includeStrings, Set<String> excludeStrings, boolean filtersMatchFieldNamesWithDots) Replace the configured filtering.
-