Module org.elasticsearch.server
Package org.elasticsearch.rest.action
Class RestChunkedToXContentListener<Response extends ChunkedToXContent>
java.lang.Object
org.elasticsearch.rest.action.RestActionListener<Response>
org.elasticsearch.rest.action.RestChunkedToXContentListener<Response>
- All Implemented Interfaces:
ActionListener<Response>
public final class RestChunkedToXContentListener<Response extends ChunkedToXContent>
extends RestActionListener<Response>
A REST based action listener that requires the response to implement
ChunkedToXContent
and automatically builds an XContent based response.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.ActionListener
ActionListener.Delegating<Response,
DelegateResponse>, ActionListener.DelegatingActionListener<T>, ActionListener.DelegatingFailureActionListener<T, R>, ActionListener.MappedActionListener<Response, MappedResponse>, ActionListener.RunAfterActionListener<T>, ActionListener.RunBeforeActionListener<T> -
Field Summary
Fields inherited from class org.elasticsearch.rest.action.RestActionListener
channel
Fields inherited from interface org.elasticsearch.action.ActionListener
NOOP
-
Constructor Summary
ConstructorDescriptionRestChunkedToXContentListener
(RestChannel channel) RestChunkedToXContentListener
(RestChannel channel, ToXContent.Params params) -
Method Summary
Methods inherited from class org.elasticsearch.rest.action.RestActionListener
ensureOpen, onFailure, onResponse
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateResponse, map
-
Constructor Details
-
RestChunkedToXContentListener
-
RestChunkedToXContentListener
-
-
Method Details
-
processResponse
- Specified by:
processResponse
in classRestActionListener<Response extends ChunkedToXContent>
- Throws:
IOException
-