Class AbstractWebSocketConnection

  • All Implemented Interfaces:
    IWebSocketConnection

    public abstract class AbstractWebSocketConnection
    extends java.lang.Object
    implements IWebSocketConnection
    Abstract class handling the Web Socket broadcast messages.
    • Constructor Detail

      • AbstractWebSocketConnection

        public AbstractWebSocketConnection​(AbstractWebSocketProcessor webSocketProcessor)
        Constructor.
        Parameters:
        webSocketProcessor - the web socket processor to delegate to
    • Method Detail

      • sendMessage

        public void sendMessage​(IWebSocketPushMessage message)
        Description copied from interface: IWebSocketConnection
        Broadcasts a push message to the wicket page (and it's components) associated with this connection. The components can then send messages or component updates to client by adding them to the target.
        Specified by:
        sendMessage in interface IWebSocketConnection
        Parameters:
        message - the push message to send
      • getApplication

        public org.apache.wicket.Application getApplication()
        Specified by:
        getApplication in interface IWebSocketConnection
        Returns:
        The application for which this WebSocket connection is registered
      • getSessionId

        public java.lang.String getSessionId()
        Specified by:
        getSessionId in interface IWebSocketConnection
        Returns:
        The id of the session for which this WebSocket connection is registered
      • getKey

        public IKey getKey()
        Specified by:
        getKey in interface IWebSocketConnection
        Returns:
        The registry key for which this WebSocket connection is registered