Class FakeRestChannel
java.lang.Object
org.opensearch.rest.AbstractRestChannel
org.opensearch.test.rest.FakeRestChannel
- All Implemented Interfaces:
org.opensearch.rest.RestChannel
public final class FakeRestChannel
extends org.opensearch.rest.AbstractRestChannel
-
Field Summary
Fields inherited from class org.opensearch.rest.AbstractRestChannel
request -
Constructor Summary
ConstructorsConstructorDescriptionFakeRestChannel(org.opensearch.rest.RestRequest request, boolean detailedErrorsEnabled, int responseCount) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.rest.RestResponseerrors()voidsendResponse(org.opensearch.rest.RestResponse response) Methods inherited from class org.opensearch.rest.AbstractRestChannel
bytesOutput, bytesOutputOrNull, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newBytesOutput, newErrorBuilder, request
-
Constructor Details
-
FakeRestChannel
public FakeRestChannel(org.opensearch.rest.RestRequest request, boolean detailedErrorsEnabled, int responseCount)
-
-
Method Details
-
sendResponse
public void sendResponse(org.opensearch.rest.RestResponse response) -
capturedResponse
public org.opensearch.rest.RestResponse capturedResponse() -
responses
-
errors
-