ByteToMessageDecoder which allows to be notified once a full ClientHello was received.
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuf | |
| private boolean | |
| private static final InternalLogger | |
| public static final int | MAX_CLIENT_HELLO_LENGTH
The maximum length of client hello message as defined by RFC5246. |
| private final int | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(ChannelHandlerContext
the ctx, SocketAddress ChannelHandlerContext for which the bind operation is madethe localAddress, ChannelPromise SocketAddress to which it should boundthe promise)ChannelPromise to notify once the operation completesImplements io. |
| public void | close(ChannelHandlerContext
the ctx, ChannelPromise ChannelHandlerContext for which the close operation is madethe promise)ChannelPromise to notify once the operation completesImplements io. |
| public void | connect(ChannelHandlerContext
the ctx, SocketAddress ChannelHandlerContext for which the connect operation is madethe remoteAddress, SocketAddress SocketAddress to which it should connectthe localAddress, ChannelPromise SocketAddress which is used as source on connectthe promise)ChannelPromise to notify once the operation completesImplements io. |
| protected void | decode(ChannelHandlerContext
the ctx, ByteBuf ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in, List<Object> ByteBuf from which to read datathe out)List to which decoded messages should be addedImplements abstract io. ByteBuf to an other.
|
| public void | deregister(ChannelHandlerContext
the ctx, ChannelPromise ChannelHandlerContext for which the close operation is madethe promise)ChannelPromise to notify once the operation completesImplements io. EventLoop.
|
| public void | disconnect(ChannelHandlerContext
the ctx, ChannelPromise ChannelHandlerContext for which the disconnect operation is madethe promise)ChannelPromise to notify once the operation completesImplements io. |
| public void | flush(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the flush operation is madeImplements io. |
| protected void | handlerRemoved0(ChannelHandlerContext ctx)
Overrides io. ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
|
| protected abstract Future | lookup(ChannelHandlerContext ctx, ByteBuf clientHello)
Kicks off a lookup for the given |
| protected abstract void | onLookupComplete(ChannelHandlerContext ctx, Future<T> future)
Called upon completion of the |
| public void | read(ChannelHandlerContext ctx)
Implements io. ChannelHandlerContext#read().
|
| private void | |
| private static void | |
| private void | |
| public void | write(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg, ChannelPromise the promise)ChannelPromise to notify once the operation completesImplements io. |
| handshakeBuffer | back to summary |
|---|---|
| private ByteBuf handshakeBuffer | |
| handshakeFailed | back to summary |
|---|---|
| private boolean handshakeFailed | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| MAX_CLIENT_HELLO_LENGTH | back to summary |
|---|---|
| public static final int MAX_CLIENT_HELLO_LENGTH The maximum length of client hello message as defined by RFC5246. | |
| maxClientHelloLength | back to summary |
|---|---|
| private final int maxClientHelloLength | |
| readPending | back to summary |
|---|---|
| private boolean readPending | |
| suppressRead | back to summary |
|---|---|
| private boolean suppressRead | |
| SslClientHelloHandler | back to summary |
|---|---|
| public SslClientHelloHandler() | |
| SslClientHelloHandler | back to summary |
|---|---|
| protected SslClientHelloHandler(int maxClientHelloLength) | |
| bind | back to summary |
|---|---|
| public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a bind operation is made.
| |
| close | back to summary |
|---|---|
| public void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a close operation is made.
| |
| connect | back to summary |
|---|---|
| public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a connect operation is made.
| |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| deregister | back to summary |
|---|---|
| public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a deregister operation is made from the current registered
| |
| disconnect | back to summary |
|---|---|
| public void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a disconnect operation is made.
| |
| flush | back to summary |
|---|---|
| public void flush(ChannelHandlerContext ctx) throws Exception Implements io. Doc from io. Called once a flush operation is made. The flush operation will try to flush out all previous written messages that are pending.
| |
| handlerRemoved0 | back to summary |
|---|---|
| protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception Overrides io. Doc from io. Gets called after the
| |
| lookup | back to summary |
|---|---|
| protected abstract Future Kicks off a lookup for the given
struct {
ProtocolVersion client_version;
Random random;
SessionID session_id;
CipherSuite cipher_suites<2..2^16-2>;
CompressionMethod compression_methods<1..2^8-1>;
select (extensions_present) {
case false:
struct {};
case true:
Extension extensions<0..2^16-1>;
};
} ClientHello;
| |
| onLookupComplete | back to summary |
|---|---|
| protected abstract void onLookupComplete(ChannelHandlerContext ctx, Future<T> future) throws Exception Called upon completion of the | |
| read | back to summary |
|---|---|
| public void read(ChannelHandlerContext ctx) throws Exception Implements io. Doc from io. Intercepts
| |
| releaseHandshakeBuffer | back to summary |
|---|---|
| private void releaseHandshakeBuffer() | |
| releaseIfNotNull | back to summary |
|---|---|
| private static void releaseIfNotNull(ByteBuf buffer) | |
| select | back to summary |
|---|---|
| private void select(final ChannelHandlerContext ctx, ByteBuf clientHello) throws Exception | |
| write | back to summary |
|---|---|
| public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a write operation is made. The write operation will write the messages through the
| |