Class FilteredRestRequest

java.lang.Object
org.elasticsearch.rest.RestRequest
org.elasticsearch.rest.FilteredRestRequest
All Implemented Interfaces:
Traceable, ToXContent.Params

public class FilteredRestRequest extends RestRequest
  • Constructor Details

    • FilteredRestRequest

      public FilteredRestRequest(RestRequest restRequest, Set<String> excludeFields)
  • Method Details

    • hasContent

      public boolean hasContent()
      Overrides:
      hasContent in class RestRequest
    • content

      public ReleasableBytesReference content()
      Description copied from class: RestRequest
      Returns a direct reference to the network buffer containing the request body. The HTTP layers will release their references to this buffer as soon as they have finished the synchronous steps of processing the request on the network thread, which will by default release the buffer back to the pool where it may be re-used for another request. If you need to keep the buffer alive past the end of these synchronous steps, acquire your own reference to this buffer and release it once it's no longer needed.
      Overrides:
      content in class RestRequest
    • transformBody

      protected Map<String,Object> transformBody(Map<String,Object> map)