public class AcknowledgedRestListener<T extends AcknowledgedResponse> extends RestBuilderListener<T>
channel| コンストラクタと説明 |
|---|
AcknowledgedRestListener(RestChannel channel) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
buildResponseprocessResponseonFailure, onResponsepublic AcknowledgedRestListener(RestChannel channel)
public RestResponse buildResponse(T response, XContentBuilder builder) throws Exception
RestBuilderListenerbuildResponse クラス内 RestBuilderListener<T extends AcknowledgedResponse>Exceptionprotected void addCustomFields(XContentBuilder builder, T response) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.