Package org.elasticsearch.http
Class DefaultRestChannel
- java.lang.Object
-
- org.elasticsearch.rest.AbstractRestChannel
-
- org.elasticsearch.http.DefaultRestChannel
-
- All Implemented Interfaces:
RestChannel
public class DefaultRestChannel extends AbstractRestChannel implements 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 Type Method Description protected BytesStreamOutput
newBytesOutput()
void
sendResponse(RestResponse restResponse)
-
Methods inherited from class org.elasticsearch.rest.AbstractRestChannel
bytesOutput, bytesOutputOrNull, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newErrorBuilder, 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, request
-
-
-
-
Method Detail
-
newBytesOutput
protected BytesStreamOutput newBytesOutput()
- Overrides:
newBytesOutput
in classAbstractRestChannel
-
sendResponse
public void sendResponse(RestResponse restResponse)
- Specified by:
sendResponse
in interfaceRestChannel
-
-