Package org.elasticsearch.test.rest
Class FakeRestChannel
java.lang.Object
org.elasticsearch.rest.AbstractRestChannel
org.elasticsearch.test.rest.FakeRestChannel
- All Implemented Interfaces:
org.elasticsearch.rest.RestChannel
public final class FakeRestChannel
extends org.elasticsearch.rest.AbstractRestChannel
-
Field Summary
Fields inherited from class org.elasticsearch.rest.AbstractRestChannel
request
-
Constructor Summary
Constructors Constructor Description FakeRestChannel(org.elasticsearch.rest.RestRequest request, boolean detailedErrorsEnabled, int responseCount)
-
Method Summary
Modifier and Type Method Description org.elasticsearch.rest.RestResponse
capturedResponse()
java.util.concurrent.atomic.AtomicInteger
errors()
java.util.concurrent.atomic.AtomicInteger
responses()
void
sendResponse(org.elasticsearch.rest.RestResponse response)
Methods inherited from class org.elasticsearch.rest.AbstractRestChannel
bytesOutput, bytesOutputOrNull, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newBytesOutput, newErrorBuilder, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FakeRestChannel
public FakeRestChannel(org.elasticsearch.rest.RestRequest request, boolean detailedErrorsEnabled, int responseCount)
-
-
Method Details
-
sendResponse
public void sendResponse(org.elasticsearch.rest.RestResponse response) -
capturedResponse
public org.elasticsearch.rest.RestResponse capturedResponse() -
responses
public java.util.concurrent.atomic.AtomicInteger responses() -
errors
public java.util.concurrent.atomic.AtomicInteger errors()
-