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
ConstructorDescriptionFakeRestChannel
(org.elasticsearch.rest.RestRequest request, boolean detailedErrorsEnabled, int responseCount) -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.rest.RestResponse
errors()
void
sendResponse
(org.elasticsearch.rest.RestResponse response) Methods inherited from class org.elasticsearch.rest.AbstractRestChannel
bytesOutput, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newBytesOutput, newErrorBuilder, releaseOutputBuffer, request
-
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
-
errors
-