ActionListener<Response>RestActions.NodesResponseRestListenerpublic abstract class RestBuilderListener<Response> extends RestResponseListener<Response>
XContentBuilder based response.channel| Constructor | Description |
|---|---|
RestBuilderListener(RestChannel channel) |
| Modifier and Type | Method | Description |
|---|---|---|
RestResponse |
buildResponse(Response response) |
Builds the response to send back through the channel.
|
abstract RestResponse |
buildResponse(Response response,
XContentBuilder builder) |
Builds a response to send back over the channel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonFailure, onResponseprocessResponsepublic RestBuilderListener(RestChannel channel)
public final RestResponse buildResponse(Response response) throws java.lang.Exception
RestResponseListenerbuildResponse in class RestResponseListener<Response>java.lang.Exceptionpublic abstract RestResponse buildResponse(Response response, XContentBuilder builder) throws java.lang.Exception
XContentBuilder
using the XContentBuilder.close() method.java.lang.Exception