public class AcknowledgedRestListener<T extends AcknowledgedResponse> extends RestBuilderListener<T>
channel
Constructor and Description |
---|
AcknowledgedRestListener(RestChannel channel) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomFields(XContentBuilder builder,
T response)
Adds api specific fields to the rest response
Does nothing by default but can be overridden by subclasses
|
RestResponse |
buildResponse(T response,
XContentBuilder builder)
Builds a response to send back over the channel.
|
buildResponse
processResponse
onFailure, onResponse
public AcknowledgedRestListener(RestChannel channel)
public RestResponse buildResponse(T response, XContentBuilder builder) throws Exception
RestBuilderListener
buildResponse
in class RestBuilderListener<T extends AcknowledgedResponse>
Exception
protected void addCustomFields(XContentBuilder builder, T response) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.