WebSocketChannel which is used for WebSocketVersion#V08
| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private UTF8Checker | |
| private int | |
| private final ByteBuffer | |
| protected static final byte | |
| protected static final byte | |
| protected static final byte | |
| protected static final byte | |
| protected static final byte | |
| protected static final byte |
| Access | Constructor and Description |
|---|---|
| public | WebSocket07Channel(StreamConnection
The channel, ByteBufferPool StreamConnection over which the WebSocket Frames should get send and received.
Be aware that it already must be "upgraded".The bufferPool, String ByteBufferPool which will be used to acquire ByteBuffer's from.The url for which the wsUrl, String subProtocol, final boolean client, boolean allowExtensions, final ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, OptionMap options)WebSocket07Channel was created.Create a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | closeSubChannels()
Implements abstract io. Method that is called when the channel is being forcibly closed, and all sub stream sink/source channels should also be forcibly closed. |
| protected StreamSinkFrameChannel | createStreamSinkChannel(WebSocketFrameType
The type)WebSocketFrameType of the WebSocketFrame which will be send over this StreamSinkFrameChannelImplements abstract io. Create a new StreamSinkFrameChannel which can be used to send a WebSocket Frame of the type |
| protected void | markReadsBroken(Throwable
The possibly null cause cause)Overrides io. Called when a source sub channel fails to fulfil its contract, and leaves the channel in an inconsistent state. |
| protected WebSocketChannel. | receiveFrame()
Implements abstract io. Create a new |
| checker | back to summary |
|---|---|
| private UTF8Checker checker | |
| fragmentedFramesCount | back to summary |
|---|---|
| private int fragmentedFramesCount | |
| lengthBuffer | back to summary |
|---|---|
| private final ByteBuffer lengthBuffer | |
| OPCODE_BINARY | back to summary |
|---|---|
| protected static final byte OPCODE_BINARY | |
| OPCODE_CLOSE | back to summary |
|---|---|
| protected static final byte OPCODE_CLOSE | |
| OPCODE_CONT | back to summary |
|---|---|
| protected static final byte OPCODE_CONT | |
| OPCODE_PING | back to summary |
|---|---|
| protected static final byte OPCODE_PING | |
| OPCODE_PONG | back to summary |
|---|---|
| protected static final byte OPCODE_PONG | |
| OPCODE_TEXT | back to summary |
|---|---|
| protected static final byte OPCODE_TEXT | |
| WebSocket07Channel | back to summary |
|---|---|
| public WebSocket07Channel(StreamConnection channel, ByteBufferPool bufferPool, String wsUrl, String subProtocol, final boolean client, boolean allowExtensions, final ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, OptionMap options) Create a new
| |
| closeSubChannels | back to summary |
|---|---|
| protected void closeSubChannels() Implements abstract io. Doc from io. Method that is called when the channel is being forcibly closed, and all sub stream sink/source channels should also be forcibly closed.
| |
| createStreamSinkChannel | back to summary |
|---|---|
| protected StreamSinkFrameChannel createStreamSinkChannel(WebSocketFrameType type) Implements abstract io. Doc from io. Create a new StreamSinkFrameChannel which can be used to send a WebSocket Frame of the type
| |
| markReadsBroken | back to summary |
|---|---|
| protected void markReadsBroken(Throwable cause) Overrides io. Doc from io. Called when a source sub channel fails to fulfil its contract, and leaves the channel in an inconsistent state. The underlying read side will be forcibly closed. | |
| receiveFrame | back to summary |
|---|---|
| protected WebSocketChannel. Implements abstract io. Doc from io. Create a new
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. | |
| public static final WebSocket07Channel. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static WebSocket07Channel. | |
| public static WebSocket07Channel. |
| DONE | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE1 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE2 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE3 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE4 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE5 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE6 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE7 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_EXTENDED_SIZE8 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_FIRST | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_MASK_1 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_MASK_2 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_MASK_3 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_MASK_4 | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| READING_SECOND | back to summary |
|---|---|
| public static final WebSocket07Channel. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static WebSocket07Channel. | |
| values | back to summary |
|---|---|
| public static WebSocket07Channel. | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private int | |
| private long | |
| private int | |
| private int | |
| private WebSocket07Channel. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public StreamSourceFrameChannel | |
| public StreamSourceFrameChannel | |
| public AbstractFramedStreamSourceChannel | |
| public long | |
| pack-priv int | |
| public void | handle(final ByteBuffer buffer)
Implements io. Handles the data, any remaining data will be pushed back |
| public boolean | |
| public boolean | |
| private void | |
| private void |
| done | back to summary |
|---|---|
| private boolean done | |
| frameFinalFlag | back to summary |
|---|---|
| private boolean frameFinalFlag | |
| frameMasked | back to summary |
|---|---|
| private boolean frameMasked | |
| frameOpcode | back to summary |
|---|---|
| private int frameOpcode | |
| framePayloadLen1 | back to summary |
|---|---|
| private int framePayloadLen1 | |
| framePayloadLength | back to summary |
|---|---|
| private long framePayloadLength | |
| frameRsv | back to summary |
|---|---|
| private int frameRsv | |
| maskingKey | back to summary |
|---|---|
| private int maskingKey | |
| state | back to summary |
|---|---|
| private WebSocket07Channel. | |
| WebSocketFrameHeader | back to summary |
|---|---|
| pack-priv WebSocketFrameHeader() | |
| createChannel | back to summary |
|---|---|
| public StreamSourceFrameChannel createChannel(PooledByteBuffer pooled) | |
| getChannel | back to summary |
|---|---|
| public StreamSourceFrameChannel getChannel(PooledByteBuffer pooled) Implements io.
| |
| getExistingChannel | back to summary |
|---|---|
| public AbstractFramedStreamSourceChannel Implements io.
| |
| getFrameLength | back to summary |
|---|---|
| public long getFrameLength() Implements io.
| |
| getMaskingKey | back to summary |
|---|---|
| pack-priv int getMaskingKey() | |
| handle | back to summary |
|---|---|
| public void handle(final ByteBuffer buffer) throws WebSocketException Implements io. Doc from io. Handles the data, any remaining data will be pushed back
| |
| isDone | back to summary |
|---|---|
| public boolean isDone() Implements io.
| |
| isFinalFragment | back to summary |
|---|---|
| public boolean isFinalFragment() Implements io.
| |
| validateControlFrame | back to summary |
|---|---|
| private void validateControlFrame() throws WebSocketFrameCorruptedException | |
| validateDataFrame | back to summary |
|---|---|
| private void validateDataFrame() throws WebSocketFrameCorruptedException | |