Package org.elasticsearch.test.rest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(org.elasticsearch.action.ActionListener<Void> listener) voidclose()booleanisOpen()voidsendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener)
-
Constructor Details
-
FakeHttpChannel
-
-
Method Details
-
sendResponse
public void sendResponse(org.elasticsearch.http.HttpResponse response, org.elasticsearch.action.ActionListener<Void> listener) - Specified by:
sendResponsein interfaceorg.elasticsearch.http.HttpChannel
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.elasticsearch.http.HttpChannel
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.elasticsearch.http.HttpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceorg.elasticsearch.common.network.CloseableChannel
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.elasticsearch.common.network.CloseableChannel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.common.network.CloseableChannel
-