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 CharSequenceprotocol()The protocol that the channel has been upgraded to.intrefCnt()booleanrelease()booleanrelease(int decrement)HttpServerUpgradeHandler.UpgradeEventretain()HttpServerUpgradeHandler.UpgradeEventretain(int increment)StringtoString()HttpServerUpgradeHandler.UpgradeEventtouch()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.
-
refCnt
public int refCnt()
- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
retain
public HttpServerUpgradeHandler.UpgradeEvent retain()
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
public HttpServerUpgradeHandler.UpgradeEvent retain(int increment)
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
public HttpServerUpgradeHandler.UpgradeEvent touch()
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
public HttpServerUpgradeHandler.UpgradeEvent touch(Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement)
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
-