Package org.elasticsearch.rest.action
-
Class Summary Class Description RestActionListener<Response> An action listener that requiresRestActionListener.processResponse(Object)to be implemented and will automatically handle failures.RestActions RestActions.NodesResponseRestListener<NodesResponse extends BaseNodesResponse & 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.RestFieldCapabilitiesAction RestMainAction 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 ToXContentObject> A REST based action listener that assumes the response is of typeToXContentand automatically builds an XContent based response (wrapping the toXContent in startObject/endObject).