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>
- Direct Known Subclasses:
RestRefCountedChunkedToXContentListener
public 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.-
Field Summary
Fields inherited from class org.elasticsearch.rest.action.RestActionListener
channel -
Constructor Summary
ConstructorsConstructorDescriptionRestChunkedToXContentListener(RestChannel channel) RestChunkedToXContentListener(RestChannel channel, ToXContent.Params params) -
Method Summary
Modifier and TypeMethodDescriptionprotected RestStatusgetRestStatus(Response response) protected voidprocessResponse(Response response) protected ReleasablereleasableFromResponse(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
-
RestChunkedToXContentListener
-
RestChunkedToXContentListener
-
-
Method Details
-
processResponse
- Specified by:
processResponsein classRestActionListener<Response extends ChunkedToXContent>- Throws:
IOException
-
releasableFromResponse
-
getRestStatus
-