java.lang.Object
io.helidon.nima.webserver.http1.Http1Connection
- All Implemented Interfaces:
InterruptableTask<Void>,ServerConnection,Runnable,Callable<Void>
HTTP/1.1 server connection.
-
Constructor Summary
ConstructorsConstructorDescriptionHttp1Connection(ConnectionContext ctx, Http1Config http1Config, Map<String, Http1Upgrader> upgradeProviderMap) Create a new connection. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.task.InterruptableTask
call, run
-
Constructor Details
-
Http1Connection
public Http1Connection(ConnectionContext ctx, Http1Config http1Config, Map<String, Http1Upgrader> upgradeProviderMap) Create a new connection.- Parameters:
ctx- connection contexthttp1Config- connection provider configurationupgradeProviderMap- map of upgrade providers (protocol id to provider)
-
-
Method Details
-
canInterrupt
public boolean canInterrupt()- Specified by:
canInterruptin interfaceInterruptableTask<Void>
-
handle
Description copied from interface:ServerConnectionStart handling the connection. Data is provided throughServerConnectionSelector.connection(io.helidon.nima.webserver.ConnectionContext).- Specified by:
handlein interfaceServerConnection- Throws:
InterruptedException- to interrupt any waiting state and terminate this connection
-