- All Known Implementing Classes:
AbstractRestChannel,DefaultRestChannel
public interface RestChannel
A channel used to construct bytes / builder based outputs, and send responses.
-
Method Summary
Modifier and TypeMethodDescriptionbooleannewBuilder(XContentType xContentType, boolean useFiltering) newBuilder(XContentType xContentType, XContentType responseContentType, boolean useFiltering) request()voidsendResponse(RestResponse response)
-
Method Details
-
newBuilder
- Throws:
IOException
-
newErrorBuilder
- Throws:
IOException
-
newBuilder
XContentBuilder newBuilder(@Nullable XContentType xContentType, boolean useFiltering) throws IOException - Throws:
IOException
-
newBuilder
XContentBuilder newBuilder(@Nullable XContentType xContentType, @Nullable XContentType responseContentType, boolean useFiltering) throws IOException - Throws:
IOException
-
bytesOutput
BytesStream bytesOutput() -
request
RestRequest request() -
detailedErrorsEnabled
boolean detailedErrorsEnabled()- Returns:
- true iff an error response should contain additional details like exception traces.
-
sendResponse
-