Package org.elasticsearch.rest.action
package org.elasticsearch.rest.action
RestHandlers that translate requests from REST into internal requests and start them then wait for them to
complete and then translate them back into REST. And some classes to support them.-
Class SummaryClassDescriptionDispatchingRestToXContentListener<Response extends StatusToXContentObject>Response listener for REST requests which dispatches the serialization of the response off of the thread on which the response was received, since that thread is often a transport thread and XContent serialization might be expensive.RestActionListener<Response>An action listener that requires
RestActionListener.processResponse(Object)to be implemented and will automatically handle failures.RestActions.NodesResponseRestListener<NodesResponse extends BaseNodesResponse & org.elasticsearch.common.xcontent.ToXContent>NodesResponseRestBuilderListenerautomatically translates anyBaseNodesResponse(multi-node) response that isToXContent-compatible into aRestResponsewith the necessary header info (e.g., "cluster_name").RestBuilderListener<Response>A REST action listener that builds anXContentBuilderbased response.A Client that cancels tasks executed locally when the providedHttpChannelis closed before completion.RestResponseListener<Response>A REST enabled action listener that has a basic onFailure implementation, and requires sub classes to only implementRestResponseListener.buildResponse(Object).RestStatusToXContentListener<Response extends StatusToXContentObject>Content listener that extracts thatRestStatusfrom the response.RestToXContentListener<Response extends org.elasticsearch.common.xcontent.ToXContentObject>A REST based action listener that requires the response to implementToXContentObjectand automatically builds an XContent based response.