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 Details

    • 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
    • retain

      Specified by:
      retain in interface io.netty.util.ReferenceCounted
    • retain

      public HttpServerUpgradeHandler.UpgradeEvent retain(int increment)
      Specified by:
      retain in interface io.netty.util.ReferenceCounted
    • touch

      Specified by:
      touch in interface io.netty.util.ReferenceCounted
    • touch

      Specified by:
      touch 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
    • toString

      public String toString()
      Overrides:
      toString in class Object