Interface Connection.UpgradeFrom

    • Method Detail

      • onUpgradeFrom

        java.nio.ByteBuffer onUpgradeFrom()

        Takes the input buffer from the connection on upgrade.

        This method is used to take any unconsumed input from a connection during an upgrade.

        Returns:
        A buffer of unconsumed input. The caller must return the buffer to the bufferpool when consumed and this connection must not.