ProtocolIOSession that implements
client side of the HTTP/2 protocol negotiation handshake always forcing the choice
of HTTP/2.
| Modifier and Type | Field and Description |
|---|---|
| private final ClientH2StreamMultiplexerFactory | |
| private volatile BufferedData | |
| private final AtomicBoolean | |
| pack-priv static final byte[] | |
| private volatile ByteBuffer | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | ClientH2PrefaceHandler(final ProtocolIOSession ioSession, final ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, final boolean strictALPNHandshake)
|
| public | ClientH2PrefaceHandler(final ProtocolIOSession ioSession, final ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, final boolean strictALPNHandshake, final FutureCallback<ProtocolIOSession> resultCallback)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | connected(final IOSession
the I/O session. session)Implements org. |
| private void | |
| public void | inputReady(final IOSession
the I/O session. session, final ByteBuffer src)Implements org. |
| public void | outputReady(final IOSession
the I/O session. session)Implements org. |
| public String | |
| private void |
| http2StreamHandlerFactory | back to summary |
|---|---|
| private final ClientH2StreamMultiplexerFactory http2StreamHandlerFactory | |
| inBuf | back to summary |
|---|---|
| private volatile BufferedData inBuf | |
| initialized | back to summary |
|---|---|
| private final AtomicBoolean initialized | |
| PREFACE | back to summary |
|---|---|
| pack-priv static final byte[] PREFACE | |
| preface | back to summary |
|---|---|
| private volatile ByteBuffer preface | |
| strictALPNHandshake | back to summary |
|---|---|
| private final boolean strictALPNHandshake | |
| ClientH2PrefaceHandler | back to summary |
|---|---|
| public ClientH2PrefaceHandler(final ProtocolIOSession ioSession, final ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, final boolean strictALPNHandshake) | |
| ClientH2PrefaceHandler | back to summary |
|---|---|
public ClientH2PrefaceHandler(final ProtocolIOSession ioSession, final ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, final boolean strictALPNHandshake, final FutureCallback<ProtocolIOSession> resultCallback)
| |
| connected | back to summary |
|---|---|
| public void connected(final IOSession session) throws IOException Implements org. Doc from org. Triggered after the given session has been just created. | |
| initialize | back to summary |
|---|---|
| private void initialize() throws IOException | |
| inputReady | back to summary |
|---|---|
| public void inputReady(final IOSession session, final ByteBuffer src) throws IOException Implements org. Doc from org. Triggered when the given session has input pending. | |
| outputReady | back to summary |
|---|---|
| public void outputReady(final IOSession session) throws IOException Implements org. Doc from org. Triggered when the given session is ready for output. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeOutPreface | back to summary |
|---|---|
| private void writeOutPreface(final IOSession session) throws IOException | |