public abstract class AbstractReceiveListener extends Object implements org.xnio.ChannelListener<WebSocketChannel>
Constructor and Description |
---|
AbstractReceiveListener() |
public void handleEvent(WebSocketChannel channel)
handleEvent
in interface org.xnio.ChannelListener<WebSocketChannel>
protected void onPing(WebSocketChannel webSocketChannel, StreamSourceFrameChannel channel) throws IOException
IOException
protected void onClose(WebSocketChannel webSocketChannel, StreamSourceFrameChannel channel) throws IOException
IOException
protected void onPong(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) throws IOException
IOException
protected void onText(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) throws IOException
IOException
protected void onBinary(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) throws IOException
IOException
protected void onError(WebSocketChannel channel, Throwable error)
protected final void bufferFullMessage(StreamSourceFrameChannel messageChannel)
onFullTextMessage(WebSocketChannel, BufferedTextMessage)
or onFullBinaryMessage(WebSocketChannel, BufferedBinaryMessage)
method will be invoked.messageChannel
- The message channelprotected long getMaxBinaryBufferSize()
protected long getMaxPongBufferSize()
protected long getMaxCloseBufferSize()
protected long getMaxPingBufferSize()
protected long getMaxTextBufferSize()
protected void onFullTextMessage(WebSocketChannel channel, BufferedTextMessage message) throws IOException
IOException
protected void onFullBinaryMessage(WebSocketChannel channel, BufferedBinaryMessage message) throws IOException
IOException
protected void onFullPingMessage(WebSocketChannel channel, BufferedBinaryMessage message) throws IOException
IOException
protected void onFullPongMessage(WebSocketChannel channel, BufferedBinaryMessage message) throws IOException
IOException
protected void onFullCloseMessage(WebSocketChannel channel, BufferedBinaryMessage message) throws IOException
IOException
protected void onCloseMessage(CloseMessage cm, WebSocketChannel channel)
Copyright © 2015 JBoss by Red Hat. All rights reserved.