Package org.opensearch.rest.action
package org.opensearch.rest.action
RestHandler
s 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.-
ClassDescriptionRestActionListener<Response>An action listener that requires
RestActionListener.processResponse(Object)
to be implemented and will automatically handle failures.REST actionsRestActions.NodesResponseRestListener<NodesResponse extends BaseNodesResponse & org.opensearch.core.xcontent.ToXContent>NodesResponseRestBuilderListener
automatically translates anyBaseNodesResponse
(multi-node) response that isToXContent
-compatible into aRestResponse
with the necessary header info (e.g., "cluster_name").RestBuilderListener<Response>A REST action listener that builds anXContentBuilder
based response.A Client that cancels tasks executed locally when the providedHttpChannel
is closed before completion.Transport action to get field capabilitiesMain OpenSearch Transport actionRestResponseListener<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 thatRestStatus
from the response.RestToXContentListener<Response extends org.opensearch.core.xcontent.ToXContentObject>A REST based action listener that assumes the response is of typeToXContent
and automatically builds an XContent based response (wrapping the toXContent in startObject/endObject).