Top Description Fields Constructors Methods
org.apache.hc.core5.http2.impl.nio

public Class ServerH2PrefaceHandler

extends PrefaceHandlerBase
Class Inheritance
Annotations
@Internal
Imports
java.io.IOException, java.nio.ByteBuffer, org.apache.hc.core5.annotation.Internal, org.apache.hc.core5.concurrent.FutureCallback, org.apache.hc.core5.http.ConnectionClosedException, org.apache.hc.core5.http.impl.nio.BufferedData, org.apache.hc.core5.reactor.IOSession, .ProtocolIOSession, org.apache.hc.core5.util.Args

I/O event handler for events fired by ProtocolIOSession that implements server side of the HTTP/2 protocol negotiation handshake.
Since
5.2

Field Summary

Modifier and TypeField and Description
private final ServerH2StreamMultiplexerFactory
private final BufferedData
pack-priv static final byte[]
Inherited from org.apache.hc.core5.http2.impl.nio.PrefaceHandlerBase:
ioSession

Constructor Summary

AccessConstructor and Description
public
ServerH2PrefaceHandler(final ProtocolIOSession ioSession, final ServerH2StreamMultiplexerFactory http2StreamHandlerFactory)

public
ServerH2PrefaceHandler(final ProtocolIOSession ioSession, final ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, final FutureCallback<ProtocolIOSession> resultCallback)

Method Summary

Modifier and TypeMethod and Description
public void
connected(final IOSession
the I/O session.
session
)

Implements org.apache.hc.core5.reactor.IOEventHandler.connected.

Triggered after the given session has been just created.
public void
inputReady(final IOSession
the I/O session.
session
,
final ByteBuffer src)

Implements org.apache.hc.core5.reactor.IOEventHandler.inputReady.

Triggered when the given session has input pending.
public void
outputReady(final IOSession
the I/O session.
session
)

Implements org.apache.hc.core5.reactor.IOEventHandler.outputReady.

Triggered when the given session is ready for output.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.apache.hc.core5.http2.impl.nio.PrefaceHandlerBase:
closeclosedisconnectedexceptiongetEndpointDetailsgetLocalAddressgetProtocolVersiongetRemoteAddressgetSocketTimeoutgetSSLSessionisOpensetSocketTimeoutstartProtocoltimeout

Field Detail

http2StreamHandlerFactoryback to summary
private final ServerH2StreamMultiplexerFactory http2StreamHandlerFactory
inBufback to summary
private final BufferedData inBuf
PREFACEback to summary
pack-priv static final byte[] PREFACE

Constructor Detail

ServerH2PrefaceHandlerback to summary
public ServerH2PrefaceHandler(final ProtocolIOSession ioSession, final ServerH2StreamMultiplexerFactory http2StreamHandlerFactory)
ServerH2PrefaceHandlerback to summary
public ServerH2PrefaceHandler(final ProtocolIOSession ioSession, final ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, final FutureCallback<ProtocolIOSession> resultCallback)

Method Detail

connectedback to summary
public void connected(final IOSession session) throws IOException

Implements org.apache.hc.core5.reactor.IOEventHandler.connected.

Doc from org.apache.hc.core5.reactor.IOEventHandler.connected.

Triggered after the given session has been just created.

Parameters
session:IOSession

the I/O session.

Annotations
@Override
inputReadyback to summary
public void inputReady(final IOSession session, final ByteBuffer src) throws IOException

Implements org.apache.hc.core5.reactor.IOEventHandler.inputReady.

Doc from org.apache.hc.core5.reactor.IOEventHandler.inputReady.

Triggered when the given session has input pending.

Parameters
session:IOSession

the I/O session.

Annotations
@Override
outputReadyback to summary
public void outputReady(final IOSession session) throws IOException

Implements org.apache.hc.core5.reactor.IOEventHandler.outputReady.

Doc from org.apache.hc.core5.reactor.IOEventHandler.outputReady.

Triggered when the given session is ready for output.

Parameters
session:IOSession

the I/O session.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override