Class LoggingDeprecationHandler
org.elasticsearch.common.xcontent.LoggingDeprecationHandler
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.DeprecationHandler
public class LoggingDeprecationHandler
extends
implements org.elasticsearch.common.xcontent.DeprecationHandler
Logs deprecations to the
DeprecationLogger
.
This is core's primary implementation of DeprecationHandler
and
should absolutely be used everywhere where it parses
requests. It is much less appropriate when parsing responses from external
sources because it will report deprecated fields back to the user as
though the user sent them.
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.DeprecationHandler
IGNORE_DEPRECATIONS, THROW_UNSUPPORTED_OPERATION
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parserName, <org.elasticsearch.common.xcontent.XContentLocation> location, usedName)
void
parserName, <org.elasticsearch.common.xcontent.XContentLocation> location, usedName, replacedWith)
void
parserName, <org.elasticsearch.common.xcontent.XContentLocation> location, usedName, modernName)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
INSTANCE
-
-
Method Details
-
usedDeprecatedName
public void usedDeprecatedName( parserName, <org.elasticsearch.common.xcontent.XContentLocation> location, usedName, modernName)- Specified by:
usedDeprecatedName
in interfaceorg.elasticsearch.common.xcontent.DeprecationHandler
-
usedDeprecatedField
public void usedDeprecatedField( parserName, <org.elasticsearch.common.xcontent.XContentLocation> location, usedName, replacedWith)- Specified by:
usedDeprecatedField
in interfaceorg.elasticsearch.common.xcontent.DeprecationHandler
-
usedDeprecatedField
public void usedDeprecatedField( parserName, <org.elasticsearch.common.xcontent.XContentLocation> location, usedName)- Specified by:
usedDeprecatedField
in interfaceorg.elasticsearch.common.xcontent.DeprecationHandler
-