public class RestStatusToXContentListener<Response extends StatusToXContent> extends RestResponseListener<Response>
channel| コンストラクタと説明 |
|---|
RestStatusToXContentListener(RestChannel channel) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
RestResponse |
buildResponse(Response response)
Builds the response to send back through the channel.
|
RestResponse |
buildResponse(Response response,
XContentBuilder builder) |
processResponseonFailure, onResponsepublic RestStatusToXContentListener(RestChannel channel)
public final RestResponse buildResponse(Response response) throws Exception
RestResponseListenerbuildResponse クラス内 RestResponseListener<Response extends StatusToXContent>Exceptionpublic final RestResponse buildResponse(Response response, XContentBuilder builder) throws Exception
ExceptionCopyright © 2009–2016. All rights reserved.