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
ConstructorDescriptionRestChunkedToXContentListener
(RestChannel channel) RestChunkedToXContentListener
(RestChannel channel, ToXContent.Params params) -
Method Summary
Modifier and TypeMethodDescriptionprotected RestStatus
getRestStatus
(Response response) protected void
processResponse
(Response response) protected Releasable
releasableFromResponse
(Response response) 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, delegateFailureAndWrap, delegateResponse, map, safeMap
-
Constructor Details
-
RestChunkedToXContentListener
-
RestChunkedToXContentListener
-
-
Method Details
-
processResponse
- Specified by:
processResponse
in classRestActionListener<Response extends ChunkedToXContent>
- Throws:
IOException
-
releasableFromResponse
-
getRestStatus
-