public class RestStatusToXContentListener<Response extends StatusToXContent> extends RestResponseListener<Response>
channel
Constructor and Description |
---|
RestStatusToXContentListener(RestChannel channel) |
Modifier and Type | Method and Description |
---|---|
RestResponse |
buildResponse(Response response)
Builds the response to send back through the channel.
|
RestResponse |
buildResponse(Response response,
XContentBuilder builder) |
processResponse
onFailure, onResponse
public RestStatusToXContentListener(RestChannel channel)
public final RestResponse buildResponse(Response response) throws java.lang.Exception
RestResponseListener
buildResponse
in class RestResponseListener<Response extends StatusToXContent>
java.lang.Exception
public final RestResponse buildResponse(Response response, XContentBuilder builder) throws java.lang.Exception
java.lang.Exception