public abstract class WebSocket07FrameSinkChannel extends StreamSinkFrameChannel
StreamSinkFrameChannel implementation for writing WebSocket Frames on WebSocketVersion.V08 connections| Modifier | Constructor and Description |
|---|---|
protected |
WebSocket07FrameSinkChannel(WebSocket07Channel wsChannel,
WebSocketFrameType type,
long payloadSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelForciblyClosed()
If a stream sink channel is closed while in the middle of sending fragmented data we need to close the connection.
|
protected SendFrameHeader |
createFrameHeader() |
protected void |
handleFlushComplete(boolean finalFrame) |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
areExtensionsSupported, getRsv, getType, getWebSocketChannel, isFinalFragment, isFragmentationSupported, isLastFrame, setRsvawaitWritable, awaitWritable, close, createFrameFooter, flush, getBuffer, getChannel, getCloseSetter, getIoThread, getOption, getWorker, getWriteSetter, getWriteThread, isBroken, isFinalFrameQueued, isFirstDataWritten, isOpen, isReadyForFlush, isWriteResumed, isWritesShutdown, markBroken, resumeWrites, resumeWritesInternal, setOption, shutdownWrites, supportsOption, suspendWrites, transferFrom, transferFrom, wakeupWrites, writeFinal, writeFinal, writeFinalprotected WebSocket07FrameSinkChannel(WebSocket07Channel wsChannel, WebSocketFrameType type, long payloadSize)
protected void handleFlushComplete(boolean finalFrame)
protected void channelForciblyClosed()
throws IOException
channelForciblyClosed in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>IOExceptionprotected SendFrameHeader createFrameHeader()
public long write(ByteBuffer[] srcs) throws IOException
write in interface GatheringByteChannelwrite in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>IOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>IOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>IOExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.