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 TypeMethodDescriptionvoid
addCloseListener
(org.elasticsearch.action.ActionListener<Void> listener) void
close()
boolean
isOpen()
void
sendResponse
(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:
sendResponse
in interfaceorg.elasticsearch.http.HttpChannel
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceorg.elasticsearch.http.HttpChannel
-
getRemoteAddress
- Specified by:
getRemoteAddress
in interfaceorg.elasticsearch.http.HttpChannel
-
addCloseListener
- Specified by:
addCloseListener
in interfaceorg.elasticsearch.common.network.CloseableChannel
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceorg.elasticsearch.common.network.CloseableChannel
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.common.network.CloseableChannel
-