| Modifier and Type | Field and Description |
|---|---|
| private ChannelPromise | |
| private final WebSocketCloseStatus | |
| private final boolean | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebSocketProtocolHandler()
Creates a new |
| pack-priv | WebSocketProtocolHandler(boolean
true if PongWebSocketFrames should be droppedCreates a new |
| pack-priv | WebSocketProtocolHandler(boolean dropPongFrames, WebSocketCloseStatus closeStatus, long forceCloseTimeoutMillis)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| 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. |
| protected WebSocketHandshakeException | buildHandshakeException(String message)
Returns a |
| public void | close(final ChannelHandlerContext
the ctx, final ChannelPromise ChannelHandlerContext for which the close operation is madethe promise)ChannelPromise to notify once the operation completesImplements io. |
| pack-priv void | |
| 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, WebSocketFrame ChannelHandlerContext which this MessageToMessageDecoder belongs tothe message to decode to an other one frame, List<Object> the out)List to which decoded messages should be addedImplements abstract io. |
| 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 | exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
Overrides io. Implements io. Throwable was thrown.
|
| public void | flush(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the flush operation is madeImplements io. |
| public void | read(ChannelHandlerContext ctx)
Implements io. ChannelHandlerContext#read().
|
| private static void | |
| public void | write(final 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. |
| closeSent | back to summary |
|---|---|
| private ChannelPromise closeSent | |
| closeStatus | back to summary |
|---|---|
| private final WebSocketCloseStatus closeStatus | |
| dropPongFrames | back to summary |
|---|---|
| private final boolean dropPongFrames | |
| forceCloseTimeoutMillis | back to summary |
|---|---|
| private final long forceCloseTimeoutMillis | |
| WebSocketProtocolHandler | back to summary |
|---|---|
| pack-priv WebSocketProtocolHandler() Creates a new | |
| WebSocketProtocolHandler | back to summary |
|---|---|
| pack-priv WebSocketProtocolHandler(boolean dropPongFrames) Creates a new
| |
| WebSocketProtocolHandler | back to summary |
|---|---|
| pack-priv WebSocketProtocolHandler(boolean dropPongFrames, WebSocketCloseStatus closeStatus, long forceCloseTimeoutMillis) | |
| applyCloseSentTimeout | back to summary |
|---|---|
| private void applyCloseSentTimeout(ChannelHandlerContext ctx) | |
| 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.
| |
| buildHandshakeException | back to summary |
|---|---|
| protected WebSocketHandshakeException buildHandshakeException(String message) Returns a | |
| close | back to summary |
|---|---|
| public void close(final ChannelHandlerContext ctx, final ChannelPromise promise) throws Exception Implements io. Doc from io. Called once a close operation is made.
| |
| closeSent | back to summary |
|---|---|
| pack-priv void closeSent(ChannelPromise promise) | |
| 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, WebSocketFrame frame, List<Object> out) throws Exception Implements abstract io. Doc from io. Decode from one message to an other. This method will be called for each written message that can be handled by this decoder.
| |
| 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.
| |
| exceptionCaught | back to summary |
|---|---|
| public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception Overrides io. Implements io. Doc from io. Gets called if a
| |
| 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.
| |
| read | back to summary |
|---|---|
| public void read(ChannelHandlerContext ctx) throws Exception Implements io. Doc from io. Intercepts
| |
| readIfNeeded | back to summary |
|---|---|
| private static void readIfNeeded(ChannelHandlerContext ctx) | |
| write | back to summary |
|---|---|
| public void write(final 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
| |