Class 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 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 interface io.netty.util.ReferenceCounted
      • release

        public boolean release()
        Specified by:
        release in interface io.netty.util.ReferenceCounted
      • release

        public boolean release​(int decrement)
        Specified by:
        release in interface io.netty.util.ReferenceCounted