public class RestChannelInterceptor extends Object implements org.elasticsearch.rest.RestChannel
| Constructor and Description |
|---|
RestChannelInterceptor(org.elasticsearch.rest.RestChannel channel,
org.elasticsearch.common.util.concurrent.ThreadContext threadContext,
String defaultKibanaIndex) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.common.io.stream.BytesStreamOutput |
bytesOutput() |
boolean |
detailedErrorsEnabled() |
org.elasticsearch.common.xcontent.XContentBuilder |
newBuilder() |
org.elasticsearch.common.xcontent.XContentBuilder |
newBuilder(org.elasticsearch.common.xcontent.XContentType contentType,
boolean useFiltering) |
org.elasticsearch.common.xcontent.XContentBuilder |
newErrorBuilder() |
org.elasticsearch.rest.RestRequest |
request() |
void |
sendResponse(org.elasticsearch.rest.RestResponse response) |
public RestChannelInterceptor(org.elasticsearch.rest.RestChannel channel,
org.elasticsearch.common.util.concurrent.ThreadContext threadContext,
String defaultKibanaIndex)
public org.elasticsearch.common.xcontent.XContentBuilder newErrorBuilder()
throws IOException
newErrorBuilder in interface org.elasticsearch.rest.RestChannelIOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder newBuilder()
throws IOException
newBuilder in interface org.elasticsearch.rest.RestChannelIOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder newBuilder(org.elasticsearch.common.xcontent.XContentType contentType,
boolean useFiltering)
throws IOException
newBuilder in interface org.elasticsearch.rest.RestChannelIOExceptionpublic org.elasticsearch.common.io.stream.BytesStreamOutput bytesOutput()
bytesOutput in interface org.elasticsearch.rest.RestChannelpublic org.elasticsearch.rest.RestRequest request()
request in interface org.elasticsearch.rest.RestChannelpublic boolean detailedErrorsEnabled()
detailedErrorsEnabled in interface org.elasticsearch.rest.RestChannelpublic void sendResponse(org.elasticsearch.rest.RestResponse response)
sendResponse in interface org.elasticsearch.rest.RestChannelCopyright © 2015–2018 Red Hat. All rights reserved.