java.lang.Object
org.elasticsearch.rest.action.RestActionListener<ActionResponse.Empty>
org.elasticsearch.rest.action.RestResponseListener<ActionResponse.Empty>
org.elasticsearch.rest.action.EmptyResponseListener
- All Implemented Interfaces:
ActionListener<ActionResponse.Empty>
A listener which converts a successful
ActionResponse.Empty action response into a 200 OK REST response with empty body.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCapability name for APIs that previously would return an invalid zero-byteapplication/jsonresponse so that the YAML test runner can avoid those APIs.Fields inherited from class org.elasticsearch.rest.action.RestActionListener
channel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildResponse(ActionResponse.Empty ignored) Builds the response to send back through the channel.Methods inherited from class org.elasticsearch.rest.action.RestResponseListener
processResponseMethods inherited from class org.elasticsearch.rest.action.RestActionListener
ensureOpen, onFailure, onResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateFailureAndWrap, delegateFailureIgnoreResponseAndWrap, delegateResponse, map, safeMap
-
Field Details
-
PLAIN_TEXT_EMPTY_RESPONSE_CAPABILITY_NAME
Capability name for APIs that previously would return an invalid zero-byteapplication/jsonresponse so that the YAML test runner can avoid those APIs.- See Also:
-
-
Constructor Details
-
EmptyResponseListener
-
-
Method Details
-
buildResponse
Description copied from class:RestResponseListenerBuilds the response to send back through the channel.- Specified by:
buildResponsein classRestResponseListener<ActionResponse.Empty>- Throws:
Exception
-