Class AbstractPartialMessageHandler<T>

  • Type Parameters:
    T - the type of message to handle
    All Implemented Interfaces:
    javax.websocket.MessageHandler, javax.websocket.MessageHandler.Partial<T>
    Direct Known Subclasses:

    public abstract class AbstractPartialMessageHandler<T>
    extends Object
    implements javax.websocket.MessageHandler.Partial<T>
    Base class for partial message handlers that want to handle messages when all their parts have been received.
    13.10.5, 14.3RC1
    $Id: 288f9ceeb4295b451e14be082393ff92c9e079a1 $
    • Constructor Detail

      • AbstractPartialMessageHandler

        public AbstractPartialMessageHandler()
    • Method Detail

      • onMessage

        public void onMessage​(T partialMessage,
                              boolean last)
        Specified by:
        onMessage in interface javax.websocket.MessageHandler.Partial<T>
      • onMessage

        public abstract void onMessage​(List<T> parts)
        Called to handle the message when all its parts have been received.
        parts - the message parts