Package io.netty5.handler.codec.http
Class HttpServerUpgradeHandler.UpgradeEvent
- java.lang.Object
-
- io.netty5.handler.codec.http.HttpServerUpgradeHandler.UpgradeEvent
-
- All Implemented Interfaces:
io.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>,AutoCloseable
- Enclosing class:
- HttpServerUpgradeHandler<C extends HttpContent<C>>
public static final class HttpServerUpgradeHandler.UpgradeEvent extends Object implements io.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
User event that is fired to notify about the completion of an HTTP upgrade to another protocol. Contains the original upgrade request so that the response (if required) can be sent using the new protocol.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisAccessible()CharSequenceprotocol()The protocol that the channel has been upgraded to.io.netty5.buffer.api.Send<HttpServerUpgradeHandler.UpgradeEvent>send()StringtoString()HttpServerUpgradeHandler.UpgradeEventtouch(Object hint)FullHttpRequestupgradeRequest()Gets the request that triggered the protocol upgrade.
-
-
-
Method Detail
-
protocol
public CharSequence protocol()
The protocol that the channel has been upgraded to.
-
upgradeRequest
public FullHttpRequest upgradeRequest()
Gets the request that triggered the protocol upgrade.
-
send
public io.netty5.buffer.api.Send<HttpServerUpgradeHandler.UpgradeEvent> send()
- Specified by:
sendin interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
isAccessible
public boolean isAccessible()
- Specified by:
isAccessiblein interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
touch
public HttpServerUpgradeHandler.UpgradeEvent touch(Object hint)
- Specified by:
touchin interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
-