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
channelFields inherited from interface org.elasticsearch.action.ActionListener
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionRestChunkedToXContentListener(RestChannel channel) RestChunkedToXContentListener(RestChannel channel, ToXContent.Params params) -
Method Summary
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, delegateResponse, map
-
Constructor Details
-
RestChunkedToXContentListener
-
RestChunkedToXContentListener
-
-
Method Details
-
processResponse
- Specified by:
processResponsein classRestActionListener<Response extends ChunkedToXContent>- Throws:
IOException
-