Class RestStatusToXContentListener<Response extends StatusToXContentObject>

All Implemented Interfaces:
ActionListener<Response>

public class RestStatusToXContentListener<Response extends StatusToXContentObject> extends RestToXContentListener<Response>
Content listener that extracts that RestStatus from the response.
  • Constructor Details

    • RestStatusToXContentListener

      public RestStatusToXContentListener(RestChannel channel)
      Build an instance that doesn't support responses with the status 201 CREATED.
    • RestStatusToXContentListener

      public RestStatusToXContentListener(RestChannel channel, Function<Response,String> extractLocation)
      Build an instance that does support responses with the status 201 CREATED.
  • Method Details