public final class FakeRestChannel
extends org.elasticsearch.rest.AbstractRestChannel
Constructor | Description |
---|---|
FakeRestChannel(org.elasticsearch.rest.RestRequest request,
boolean detailedErrorsEnabled,
int responseCount) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
await() |
|
org.elasticsearch.rest.RestResponse |
capturedResponse() |
|
java.util.concurrent.atomic.AtomicInteger |
errors() |
|
org.elasticsearch.common.xcontent.XContentBuilder |
newBuilder() |
|
org.elasticsearch.common.xcontent.XContentBuilder |
newBuilder(org.elasticsearch.common.xcontent.XContentType requestContentType,
boolean useFiltering) |
|
protected org.elasticsearch.common.io.stream.BytesStreamOutput |
newBytesOutput() |
|
org.elasticsearch.common.xcontent.XContentBuilder |
newErrorBuilder() |
|
org.elasticsearch.rest.RestRequest |
request() |
|
java.util.concurrent.atomic.AtomicInteger |
responses() |
|
void |
sendResponse(org.elasticsearch.rest.RestResponse response) |
public FakeRestChannel(org.elasticsearch.rest.RestRequest request, boolean detailedErrorsEnabled, int responseCount)
public org.elasticsearch.common.xcontent.XContentBuilder newBuilder() throws java.io.IOException
newBuilder
in class org.elasticsearch.rest.AbstractRestChannel
java.io.IOException
public org.elasticsearch.common.xcontent.XContentBuilder newErrorBuilder() throws java.io.IOException
newErrorBuilder
in class org.elasticsearch.rest.AbstractRestChannel
java.io.IOException
public org.elasticsearch.common.xcontent.XContentBuilder newBuilder(@Nullable org.elasticsearch.common.xcontent.XContentType requestContentType, boolean useFiltering) throws java.io.IOException
newBuilder
in class org.elasticsearch.rest.AbstractRestChannel
java.io.IOException
protected org.elasticsearch.common.io.stream.BytesStreamOutput newBytesOutput()
newBytesOutput
in class org.elasticsearch.rest.AbstractRestChannel
public org.elasticsearch.rest.RestRequest request()
request
in class org.elasticsearch.rest.AbstractRestChannel
public void sendResponse(org.elasticsearch.rest.RestResponse response)
public org.elasticsearch.rest.RestResponse capturedResponse()
public boolean await() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.util.concurrent.atomic.AtomicInteger responses()
public java.util.concurrent.atomic.AtomicInteger errors()