Package io.netty.handler.codec.http
Class HttpServerUpgradeHandler.UpgradeEvent
- java.lang.Object
-
- io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeEvent
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
- Enclosing class:
- HttpServerUpgradeHandler
public static final class HttpServerUpgradeHandler.UpgradeEvent extends Object implements io.netty.util.ReferenceCounted
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 CharSequence
protocol()
The protocol that the channel has been upgraded to.int
refCnt()
boolean
release()
boolean
release(int decrement)
HttpServerUpgradeHandler.UpgradeEvent
retain()
HttpServerUpgradeHandler.UpgradeEvent
retain(int increment)
String
toString()
HttpServerUpgradeHandler.UpgradeEvent
touch()
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.
-
refCnt
public int refCnt()
- Specified by:
refCnt
in interfaceio.netty.util.ReferenceCounted
-
retain
public HttpServerUpgradeHandler.UpgradeEvent retain()
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
retain
public HttpServerUpgradeHandler.UpgradeEvent retain(int increment)
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
touch
public HttpServerUpgradeHandler.UpgradeEvent touch()
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
touch
public HttpServerUpgradeHandler.UpgradeEvent touch(Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement)
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
-