Class FakeRestRequest.FakeHttpChannel

java.lang.Object
org.elasticsearch.test.rest.FakeRestRequest.FakeHttpChannel
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.common.network.CloseableChannel, org.elasticsearch.http.HttpChannel
Enclosing class:
FakeRestRequest

public static class FakeRestRequest.FakeHttpChannel extends Object implements org.elasticsearch.http.HttpChannel
  • Constructor Details

  • Method Details

    • sendResponse

      public void sendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener)
      Specified by:
      sendResponse in interface org.elasticsearch.http.HttpChannel
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
      Specified by:
      getLocalAddress in interface org.elasticsearch.http.HttpChannel
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()
      Specified by:
      getRemoteAddress in interface org.elasticsearch.http.HttpChannel
    • addCloseListener

      public void addCloseListener(org.elasticsearch.action.ActionListener<Void> listener)
      Specified by:
      addCloseListener in interface org.elasticsearch.common.network.CloseableChannel
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface org.elasticsearch.common.network.CloseableChannel
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.common.network.CloseableChannel