Class WebSocketReceiveListener

  • All Implemented Interfaces:
    EventListener, org.xnio.ChannelListener<io.undertow.websockets.core.WebSocketChannel>

    public class WebSocketReceiveListener
    extends io.undertow.websockets.core.AbstractReceiveListener
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  WebSocketReceiveListener.ACTION  
      • Nested classes/interfaces inherited from interface org.xnio.ChannelListener

        org.xnio.ChannelListener.Setter<T extends Channel>, org.xnio.ChannelListener.SimpleSetter<T extends Channel>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void onClose​(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.StreamSourceFrameChannel frameChannel)  
      protected void onFullTextMessage​(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage textMessage)  
      • Methods inherited from class io.undertow.websockets.core.AbstractReceiveListener

        bufferFullMessage, getMaxBinaryBufferSize, getMaxCloseBufferSize, getMaxPingBufferSize, getMaxPongBufferSize, getMaxTextBufferSize, handleEvent, onBinary, onCloseMessage, onError, onFullBinaryMessage, onFullCloseMessage, onFullPingMessage, onFullPongMessage, onPing, onPong, onText
    • Method Detail

      • onFullTextMessage

        protected void onFullTextMessage​(io.undertow.websockets.core.WebSocketChannel channel,
                                         io.undertow.websockets.core.BufferedTextMessage textMessage)
                                  throws IOException
        Overrides:
        onFullTextMessage in class io.undertow.websockets.core.AbstractReceiveListener
        Throws:
        IOException
      • onClose

        protected void onClose​(io.undertow.websockets.core.WebSocketChannel channel,
                               io.undertow.websockets.core.StreamSourceFrameChannel frameChannel)
                        throws IOException
        Overrides:
        onClose in class io.undertow.websockets.core.AbstractReceiveListener
        Throws:
        IOException