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
-
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)
-
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()
-