Package org.elasticsearch.http
Class DefaultRestChannel
java.lang.Object
org.elasticsearch.rest.AbstractRestChannel
org.elasticsearch.http.DefaultRestChannel
- All Implemented Interfaces:
RestChannel
The default rest channel for incoming requests. This class implements the basic logic for sending a rest
response. It will set necessary headers nad ensure that bytes are released after the response is sent.
-
Field Summary
Fields inherited from class org.elasticsearch.rest.AbstractRestChannel
request
-
Method Summary
Modifier and TypeMethodDescriptionprotected BytesStreamOutput
void
sendResponse
(RestResponse restResponse) Methods inherited from class org.elasticsearch.rest.AbstractRestChannel
bytesOutput, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newErrorBuilder, releaseOutputBuffer, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.rest.RestChannel
bytesOutput, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newErrorBuilder, releaseOutputBuffer, request
-
Method Details
-
newBytesOutput
- Overrides:
newBytesOutput
in classAbstractRestChannel
-
sendResponse
- Specified by:
sendResponse
in interfaceRestChannel
-