Class AbstractWebSocketConnection
- java.lang.Object
-
- org.apache.wicket.protocol.ws.api.AbstractWebSocketConnection
-
- All Implemented Interfaces:
IWebSocketConnection
public abstract class AbstractWebSocketConnection extends java.lang.Object implements IWebSocketConnection
Abstract class handling the Web Socket broadcast messages.
-
-
Constructor Summary
Constructors Constructor Description AbstractWebSocketConnection(AbstractWebSocketProcessor webSocketProcessor)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.wicket.ApplicationgetApplication()IKeygetKey()java.lang.StringgetSessionId()voidsendMessage(IWebSocketPushMessage message)Broadcasts a push message to the wicket page (and it's components) associated with this connection.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.protocol.ws.api.IWebSocketConnection
close, isOpen, sendMessage, sendMessage
-
-
-
-
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:IWebSocketConnectionBroadcasts 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:
sendMessagein interfaceIWebSocketConnection- Parameters:
message- the push message to send
-
getApplication
public org.apache.wicket.Application getApplication()
- Specified by:
getApplicationin interfaceIWebSocketConnection- Returns:
- The application for which this WebSocket connection is registered
-
getSessionId
public java.lang.String getSessionId()
- Specified by:
getSessionIdin interfaceIWebSocketConnection- Returns:
- The id of the session for which this WebSocket connection is registered
-
getKey
public IKey getKey()
- Specified by:
getKeyin interfaceIWebSocketConnection- Returns:
- The registry key for which this WebSocket connection is registered
-
-