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
Modifier and TypeMethodDescriptionbooleanSignals if a task can be interrupted at the time this method is called.voidhandle()Start handling the connection.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()Description copied from interface:InterruptableTaskSignals if a task can be interrupted at the time this method is called.- Specified by:
canInterruptin interfaceInterruptableTask<Void>- Returns:
- outcome of interruptable test
-
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
-