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 void
close()
boolean
isAccessible()
CharSequence
protocol()
The protocol that the channel has been upgraded to.io.netty5.buffer.api.Send<HttpServerUpgradeHandler.UpgradeEvent>
send()
String
toString()
HttpServerUpgradeHandler.UpgradeEvent
touch(Object hint)
FullHttpRequest
upgradeRequest()
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:
send
in interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
isAccessible
public boolean isAccessible()
- Specified by:
isAccessible
in interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
touch
public HttpServerUpgradeHandler.UpgradeEvent touch(Object hint)
- Specified by:
touch
in interfaceio.netty5.buffer.api.Resource<HttpServerUpgradeHandler.UpgradeEvent>
-
-