Module org.elasticsearch.server
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
A REST enabled action listener that has a basic onFailure implementation, and requires
sub classes to only implement
buildResponse(Object).-
Field Summary
Fields inherited from class org.elasticsearch.rest.action.RestActionListener
channel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RestResponsebuildResponse(Response response) Builds the response to send back through the channel.protected final voidprocessResponse(Response response) Methods inherited from class org.elasticsearch.rest.action.RestActionListener
ensureOpen, onFailure, onResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateFailureAndWrap, delegateFailureIgnoreResponseAndWrap, delegateResponse, map, safeMap
-
Constructor Details
-
RestResponseListener
-
-
Method Details
-
processResponse
- Specified by:
processResponsein classRestActionListener<Response>- Throws:
Exception
-
buildResponse
Builds the response to send back through the channel.- Throws:
Exception
-