Module org.elasticsearch.xcontent
Package org.elasticsearch.xcontent
Interface XContentParserConfiguration
public interface XContentParserConfiguration
Configuration for
XContentParser.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XContentParserConfigurationCreates 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 versionfromXContentParser.getRestApiVersion(), and do no filtering. -
Method Summary
Modifier and TypeMethodDescriptionregistry()withDeprecationHandler(DeprecationHandler deprecationHandler) Replace the behavior ofXContentParserwhen 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 theclaimedRestApiVersion.
-
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 versionfromXContentParser.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 ofXContentParserwhen it encounters a deprecated field. -
deprecationHandler
DeprecationHandler deprecationHandler() -
withRestApiVersion
Replace theclaimedRestApiVersion. -
restApiVersion
RestApiVersion restApiVersion() -
withFiltering
XContentParserConfiguration withFiltering(Set<String> includeStrings, Set<String> excludeStrings, boolean filtersMatchFieldNamesWithDots) Replace the configured filtering.
-