public class WebSocket07Channel extends WebSocketChannel
WebSocketChannel which is used for WebSocketVersion.V08WebSocketChannel.PartialFrame, WebSocketChannel.StreamSourceChannelControl| Modifier and Type | Field and Description |
|---|---|
protected static byte |
OPCODE_BINARY |
protected static byte |
OPCODE_CLOSE |
protected static byte |
OPCODE_CONT |
protected static byte |
OPCODE_PING |
protected static byte |
OPCODE_PONG |
protected static byte |
OPCODE_TEXT |
| Constructor and Description |
|---|
WebSocket07Channel(org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> bufferPool,
String wsUrl,
Set<String> subProtocols,
boolean client,
boolean allowExtensions)
Create a new
WebSocket07Channel |
| Modifier and Type | Method and Description |
|---|---|
protected StreamSinkFrameChannel |
createStreamSinkChannel(org.xnio.channels.StreamSinkChannel channel,
WebSocketFrameType type,
long payloadSize)
Create a new StreamSinkFrameChannel which can be used to send a WebSocket Frame of the type
WebSocketFrameType. |
protected WebSocketChannel.PartialFrame |
receiveFrame(WebSocketChannel.StreamSourceChannelControl streamSourceChannelControl)
Create a new
StreamSourceFrameChannel which can be used to read the data of the received WebSocket Frame |
areExtensionsSupported, close, getAttribute, getBufferPool, getCloseSetter, getDestinationAddress, getIdleTimeout, getIoThread, getLocalAddress, getLocalAddress, getOption, getPeerAddress, getPeerAddress, getReceiveSetter, getRequestScheme, getSourceAddress, getSubProtocols, getUrl, getVersion, getWorker, isClient, isCloseFrameReceived, isCloseFrameSent, isOpen, isSecure, receive, resumeReceives, send, sendClose, sendFragmentedBinary, sendFragmentedText, setAttribute, setIdleTimeout, setOption, supportsOption, suspendReceivesprotected static final byte OPCODE_CONT
protected static final byte OPCODE_TEXT
protected static final byte OPCODE_BINARY
protected static final byte OPCODE_CLOSE
protected static final byte OPCODE_PING
protected static final byte OPCODE_PONG
public WebSocket07Channel(org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> bufferPool,
String wsUrl,
Set<String> subProtocols,
boolean client,
boolean allowExtensions)
WebSocket07Channelchannel - The StreamConnection over which the WebSocket Frames should get send and received.
Be aware that it already must be "upgraded".bufferPool - The Pool which will be used to acquire ByteBuffer's from.wsUrl - The url for which the WebSocket07Channel was created.protected WebSocketChannel.PartialFrame receiveFrame(WebSocketChannel.StreamSourceChannelControl streamSourceChannelControl)
WebSocketChannelStreamSourceFrameChannel which can be used to read the data of the received WebSocket FramereceiveFrame in class WebSocketChannelprotected StreamSinkFrameChannel createStreamSinkChannel(org.xnio.channels.StreamSinkChannel channel, WebSocketFrameType type, long payloadSize)
WebSocketChannelWebSocketFrameType.createStreamSinkChannel in class WebSocketChannelchannel - The StreamSinkChannel to wraptype - The WebSocketFrameType of the WebSocketFrame which will be send over this StreamSinkFrameChannelpayloadSize - The size of the payload to transmit. May be 0 if non payload at all should be included.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.