ActionListener<Response>
RestBuilderListener
, RestToXContentListener
public abstract class RestResponseListener<Response> extends RestActionListener<Response>
buildResponse(Object)
.channel
Modifier | Constructor | Description |
---|---|---|
protected |
RestResponseListener(RestChannel channel) |
Modifier and Type | Method | Description |
---|---|---|
abstract RestResponse |
buildResponse(Response response) |
Builds the response to send back through the channel.
|
protected void |
processResponse(Response response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFailure, onResponse
protected RestResponseListener(RestChannel channel)
protected final void processResponse(Response response) throws java.lang.Exception
processResponse
in class RestActionListener<Response>
java.lang.Exception
public abstract RestResponse buildResponse(Response response) throws java.lang.Exception
java.lang.Exception