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 BytesStreamOutputvoidsendResponse(RestResponse restResponse)Methods inherited from class org.elasticsearch.rest.AbstractRestChannel
bytesOutput, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newErrorBuilder, releaseOutputBuffer, requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.rest.RestChannel
bytesOutput, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newErrorBuilder, request
-
Method Details
-
newBytesOutput
- Overrides:
newBytesOutputin classAbstractRestChannel
-
sendResponse
- Specified by:
sendResponsein interfaceRestChannel
-