Package org.elasticsearch.rest
Interface RestChannel
- 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 TypeMethodDescriptionboolean
org.elasticsearch.common.xcontent.XContentBuilder
org.elasticsearch.common.xcontent.XContentBuilder
newBuilder(org.elasticsearch.common.xcontent.XContentType xContentType, boolean useFiltering)
org.elasticsearch.common.xcontent.XContentBuilder
newBuilder(org.elasticsearch.common.xcontent.XContentType xContentType, org.elasticsearch.common.xcontent.XContentType responseContentType, boolean useFiltering)
org.elasticsearch.common.xcontent.XContentBuilder
request()
void
sendResponse(RestResponse response)
-
Method Details
-
newBuilder
- Throws:
IOException
-
newErrorBuilder
- Throws:
IOException
-
newBuilder
org.elasticsearch.common.xcontent.XContentBuilder newBuilder(@Nullable org.elasticsearch.common.xcontent.XContentType xContentType, boolean useFiltering) throws IOException- Throws:
IOException
-
newBuilder
org.elasticsearch.common.xcontent.XContentBuilder newBuilder(@Nullable org.elasticsearch.common.xcontent.XContentType xContentType, @Nullable org.elasticsearch.common.xcontent.XContentType responseContentType, boolean useFiltering) throws IOException- Throws:
IOException
-
bytesOutput
BytesStreamOutput bytesOutput() -
request
RestRequest request() -
detailedErrorsEnabled
boolean detailedErrorsEnabled()- Returns:
- true iff an error response should contain additional details like exception traces.
-
sendResponse
-