Package org.elasticsearch.rest.action
Class RestResponseListener<Response>
java.lang.Object
org.elasticsearch.rest.action.RestActionListener<Response>
org.elasticsearch.rest.action.RestResponseListener<Response>
- All Implemented Interfaces:
ActionListener<Response>
- Direct Known Subclasses:
RestBuilderListener,RestToXContentListener
public abstract class RestResponseListener<Response> extends RestActionListener<Response>
A REST enabled action listener that has a basic onFailure implementation, and requires
sub classes to only implement
buildResponse(Object).-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedRestResponseListener(RestChannel channel) -
Method Summary
Modifier and Type Method Description abstract RestResponsebuildResponse(Response response)Builds the response to send back through the channel.protected voidprocessResponse(Response response)
-
Constructor Details
-
Method Details
-
processResponse
- Specified by:
processResponsein classRestActionListener<Response>- Throws:
java.lang.Exception
-
buildResponse
Builds the response to send back through the channel.- Throws:
java.lang.Exception
-