public abstract class RestBuilderListener<Response> extends RestResponseListener<Response>
XContentBuilder
based response.channel
Constructor and Description |
---|
RestBuilderListener(RestChannel channel) |
Modifier and Type | Method and 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.
|
processResponse
onFailure, onResponse
public RestBuilderListener(RestChannel channel)
public final RestResponse buildResponse(Response response) throws Exception
RestResponseListener
buildResponse
in class RestResponseListener<Response>
Exception
public abstract RestResponse buildResponse(Response response, XContentBuilder builder) throws Exception
Exception
Copyright © 2009–2017. All rights reserved.