Class ClientH2PrefaceHandler

    • Field Detail

      • PREFACE

        static final byte[] PREFACE
      • strictALPNHandshake

        private final boolean strictALPNHandshake
      • initialized

        private final java.util.concurrent.atomic.AtomicBoolean initialized
      • preface

        private volatile java.nio.ByteBuffer preface
    • Method Detail

      • initialize

        private void initialize()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeOutPreface

        private void writeOutPreface​(IOSession session)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • connected

        public void connected​(IOSession session)
                       throws java.io.IOException
        Description copied from interface: IOEventHandler
        Triggered after the given session has been just created.
        Parameters:
        session - the I/O session.
        Throws:
        java.io.IOException
      • outputReady

        public void outputReady​(IOSession session)
                         throws java.io.IOException
        Description copied from interface: IOEventHandler
        Triggered when the given session is ready for output.
        Parameters:
        session - the I/O session.
        Throws:
        java.io.IOException
      • inputReady

        public void inputReady​(IOSession session,
                               java.nio.ByteBuffer src)
                        throws java.io.IOException
        Description copied from interface: IOEventHandler
        Triggered when the given session has input pending.
        Parameters:
        session - the I/O session.
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object