Module org.elasticsearch.server
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.-
ClassesClassDescriptionA listener which converts a successful
ActionResponse.Emptyaction response into a200 OKREST response with empty body.RestActionListener<Response>An action listener that requiresRestActionListener.processResponse(Object)to be implemented and will automatically handle failures.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.RestChunkedToXContentListener<Response extends ChunkedToXContent>A REST based action listener that requires the response to implementChunkedToXContentand automatically builds an XContent based response.Same asRestChunkedToXContentListenerbut decrements the ref count on the response it receives by one after serialization of the response.RestResponseListener<Response>A REST enabled action listener that has a basic onFailure implementation, and requires sub classes to only implementRestResponseListener.buildResponse(Object).RestToXContentListener<Response extends ToXContentObject>A REST based action listener that requires the response to implementToXContentObjectand automatically builds an XContent based response.