Class RestToXContentListener<Response extends org.elasticsearch.xcontent.ToXContentObject>

All Implemented Interfaces:
ActionListener<Response>
Direct Known Subclasses:
RestStatusToXContentListener

public class RestToXContentListener<Response extends org.elasticsearch.xcontent.ToXContentObject> extends RestBuilderListener<Response>
A REST based action listener that requires the response to implement ToXContentObject and automatically builds an XContent based response.
  • Constructor Details

    • RestToXContentListener

      public RestToXContentListener(RestChannel channel)
  • Method Details