Package org.elasticsearch.rest
Interface RestRequestFilter
-
public interface RestRequestFilterIdentifies an object that supplies a filter for the content of aRestRequest. This interface should be implemented by aRestHandlerthat expects there will be sensitive content in the body of the request such as a password
-
-
Method Summary
Modifier and Type Method Description java.util.Set<java.lang.String>getFilteredFields()The list of fields that should be filtered.default RestRequestgetFilteredRequest(RestRequest restRequest)Wraps the RestRequest and returns a version that provides the filtered content
-
-
-
Method Detail
-
getFilteredRequest
default RestRequest getFilteredRequest(RestRequest restRequest) throws java.io.IOException
Wraps the RestRequest and returns a version that provides the filtered content- Throws:
java.io.IOException
-
getFilteredFields
java.util.Set<java.lang.String> getFilteredFields()
The list of fields that should be filtered. This can be a dot separated pattern to match sub objects and also supports wildcards
-
-