java.lang.Object
org.elasticsearch.rest.RestRequest
org.elasticsearch.rest.FilteredRestRequest
- All Implemented Interfaces:
Traceable,ToXContent.Params
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.rest.RestRequest
RestRequest.BadParameterException, RestRequest.MediaTypeHeaderException, RestRequest.Method -
Field Summary
Fields inherited from class org.elasticsearch.rest.RestRequest
INTERNAL_MARKER_REQUEST_PARAMETERS, OPERATOR_REQUEST, SERVERLESS_REQUEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns a direct reference to the network buffer containing the request body.booleantransformBody(Map<String, Object> map) Methods inherited from class org.elasticsearch.rest.RestRequest
applyContentParser, applyContentParser, contentLength, contentOrSourceParam, contentOrSourceParamParser, contentParser, contentParserConfig, contentStream, ensureContent, getAllHeaderValues, getHeaders, getHttpChannel, getHttpRequest, getParsedAccept, getParsedContentType, getRequestId, getRestApiVersion, getSpanId, getXContentType, hasContentOrSourceParam, hasExplicitRestApiVersion, hasParam, header, isContentConsumed, isFullContent, isOperatorRequest, isServerlessRequest, isStreamedContent, markAsOperatorRequest, markAsServerlessRequest, method, param, param, paramAsBoolean, paramAsBoolean, paramAsDouble, paramAsFloat, paramAsInt, paramAsInteger, paramAsLong, paramAsSize, paramAsStringArray, paramAsStringArrayOrEmptyIfAll, paramAsTime, params, parseContentType, path, rawPath, request, requestWithoutParameters, requiredContent, uri, withContentOrSourceParamParserOrNull
-
Constructor Details
-
FilteredRestRequest
-
-
Method Details
-
hasContent
public boolean hasContent()- Overrides:
hasContentin classRestRequest
-
content
Description copied from class:RestRequestReturns a direct reference to the network buffer containing the request body. The HTTP layers will release their references to this buffer as soon as they have finished the synchronous steps of processing the request on the network thread, which will by default release the buffer back to the pool where it may be re-used for another request. If you need to keep the buffer alive past the end of these synchronous steps, acquire your own reference to this buffer and release it once it's no longer needed.- Overrides:
contentin classRestRequest
-
transformBody
-