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
     
     
     
    void
    sendResponse(org.elasticsearch.rest.RestResponse response)
     

    Methods inherited from class org.elasticsearch.rest.AbstractRestChannel

    bytesOutput, detailedErrorsEnabled, newBuilder, newBuilder, newBuilder, newBytesOutput, newErrorBuilder, releaseOutputBuffer, 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 AtomicInteger responses()
    • errors

      public AtomicInteger errors()