java.lang.Object
io.helidon.webserver.http2.Http2Connection
- All Implemented Interfaces:
io.helidon.common.task.InterruptableTask<Void>,ServerConnection,Runnable,Callable<Void>
public class Http2Connection
extends Object
implements ServerConnection, io.helidon.common.task.InterruptableTask<Void>
HTTP/2 server connection.
A single connection is created between a client and a server.
A single connection serves multiple streams.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclientSettings(Http2Settings http2Settings) Client settings, obtained from SETTINGS frame or HTTP/2 upgrade request.voidclose(boolean interrupt) voidExpect connection preface (prior knowledge).voididleTime()toString()voidupgradeConnectionData(io.helidon.http.HttpPrologue prologue, Http2Headers headers) Connection headers from an upgrade request from HTTP/1.1.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.common.task.InterruptableTask
call, run
-
Method Details
-
handle
- Specified by:
handlein interfaceServerConnection- Throws:
InterruptedException
-
clientSettings
Client settings, obtained from SETTINGS frame or HTTP/2 upgrade request.- Parameters:
http2Settings- client settings to use
-
upgradeConnectionData
Connection headers from an upgrade request from HTTP/1.1.- Parameters:
prologue- prologue of the HTTP/2 requestheaders- headers to use for first stream (obtained from original HTTP/1.1 request)
-
expectPreface
public void expectPreface()Expect connection preface (prior knowledge). -
canInterrupt
public boolean canInterrupt()- Specified by:
canInterruptin interfaceio.helidon.common.task.InterruptableTask<Void>
-
toString
-
idleTime
- Specified by:
idleTimein interfaceServerConnection
-
close
public void close(boolean interrupt) - Specified by:
closein interfaceServerConnection
-