org.apache.wicket.protocol.ws.api
Class AbstractWebSocketConnection

java.lang.Object
  extended by org.apache.wicket.protocol.ws.api.AbstractWebSocketConnection
All Implemented Interfaces:
IWebSocketConnection

public abstract class AbstractWebSocketConnection
extends Object
implements IWebSocketConnection

Abstract class handling the Web Socket broadcast messages.


Constructor Summary
AbstractWebSocketConnection(AbstractWebSocketProcessor webSocketProcessor)
          Constructor.
 
Method Summary
 void sendMessage(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: 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


Copyright © 2006–2013 Apache Software Foundation. All rights reserved.