Package org.elasticsearch.test.rest
Class FakeRestRequest.FakeHttpChannel
java.lang.Object
org.elasticsearch.test.rest.FakeRestRequest.FakeHttpChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,CloseableChannel,HttpChannel
- Enclosing class:
FakeRestRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseListener(ActionListener<Void> listener) voidclose()booleanisOpen()voidsendResponse(HttpResponse response, ActionListener<Void> listener)
-
Constructor Details
-
FakeHttpChannel
-
-
Method Details
-
sendResponse
- Specified by:
sendResponsein interfaceHttpChannel
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceHttpChannel
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceHttpChannel
-
addCloseListener
- Specified by:
addCloseListenerin interfaceCloseableChannel
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceCloseableChannel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseableChannel
-