Class AbstractWebSocketConnection
java.lang.Object
org.apache.wicket.protocol.ws.api.AbstractWebSocketConnection
- All Implemented Interfaces:
IWebSocketConnection
- Direct Known Subclasses:
JavaxWebSocketConnection
Abstract class handling the Web Socket broadcast messages.
-
Constructor Summary
ConstructorDescriptionAbstractWebSocketConnection
(AbstractWebSocketProcessor webSocketProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
void
sendMessage
(IWebSocketPushMessage message) Broadcasts a push message to the wicket page (and it's components) associated with this connection.void
sendMessageAsync
(IWebSocketPushMessage message) Broadcasts a push message to the wicket page (and it's components) associated with this connection.void
sendMessageAsync
(IWebSocketPushMessage message, long timeout) 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, sendMessageAsync, sendMessageAsync, sendMessageAsync, sendMessageAsync
-
Constructor Details
-
AbstractWebSocketConnection
Constructor.- Parameters:
webSocketProcessor
- the web socket processor to delegate to
-
-
Method Details
-
sendMessage
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 interfaceIWebSocketConnection
- Parameters:
message
- the push message to send
-
sendMessageAsync
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. Pushing to client is done asynchronously.- Specified by:
sendMessageAsync
in interfaceIWebSocketConnection
- Parameters:
message
- the push message to send
-
sendMessageAsync
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. Pushing to client is done asynchronously.- Specified by:
sendMessageAsync
in interfaceIWebSocketConnection
- Parameters:
message
- the push message to sendtimeout
- the timeout in milliseconds
-
getApplication
- Specified by:
getApplication
in interfaceIWebSocketConnection
- Returns:
- The application for which this WebSocket connection is registered
-
getSessionId
- Specified by:
getSessionId
in interfaceIWebSocketConnection
- Returns:
- The id of the session for which this WebSocket connection is registered
-
getKey
- Specified by:
getKey
in interfaceIWebSocketConnection
- Returns:
- The registry key for which this WebSocket connection is registered
-