|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.wicketstuff.push.AbstractPushService
org.wicketstuff.push.cometd.CometdPushService
public class CometdPushService
Cometd based implementation of IPushService.
This implementation relies on cometd for updating the page, but actually uses regular cometd events, that will trigger a Wicket AJAX call to get the page actually refreshed using regular Wicket AJAX mechanisms.
This mean that each time an event is published, a new connection is made to the server to get the
actual page update performed by the IPushEventHandler.
| Field Summary |
|---|
| Fields inherited from class org.wicketstuff.push.AbstractPushService |
|---|
disconnectListeners, nodesByChannels |
| Method Summary | ||
|---|---|---|
static CometdPushService |
get()
|
|
static CometdPushService |
get(WebApplication application)
|
|
static org.wicketstuff.push.IPushServiceRef<CometdPushService> |
getRef()
|
|
|
installNode(Component component,
org.wicketstuff.push.IPushEventHandler<EventType> handler)
|
|
boolean |
isConnected(org.wicketstuff.push.IPushNode<?> node)
|
|
|
publish(org.wicketstuff.push.IPushChannel<EventType> channel,
EventType event)
|
|
|
publish(org.wicketstuff.push.IPushNode<EventType> node,
EventType event)
|
|
|
publishJavascript(CometdPushNode<EventType> node,
String javascript)
Directly sends JavaScript code to the node via a cometd channel without an additional Wicket AJAX request roundtrip. |
|
|
publishJavascript(org.wicketstuff.push.PushChannel<EventType> channel,
String javascript)
Directly sends JavaScript code to all nodes listeing to the given push channel via a cometd channel without an additional Wicket AJAX request roundtrip. |
|
void |
uninstallNode(Component component,
org.wicketstuff.push.IPushNode<?> node)
|
|
| Methods inherited from class org.wicketstuff.push.AbstractPushService |
|---|
addNodeDisconnectedListener, connectToChannel, createChannel, disconnectFromAllChannels, disconnectFromChannel, removeChannel, removeNodeDisconnectedListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CometdPushService get()
public static CometdPushService get(WebApplication application)
public static org.wicketstuff.push.IPushServiceRef<CometdPushService> getRef()
public <EventType> CometdPushNode<EventType> installNode(Component component,
org.wicketstuff.push.IPushEventHandler<EventType> handler)
public boolean isConnected(org.wicketstuff.push.IPushNode<?> node)
public <EventType> void publish(org.wicketstuff.push.IPushChannel<EventType> channel,
EventType event)
public <EventType> void publish(org.wicketstuff.push.IPushNode<EventType> node,
EventType event)
public <EventType> void publishJavascript(CometdPushNode<EventType> node,
String javascript)
public <EventType> void publishJavascript(org.wicketstuff.push.PushChannel<EventType> channel,
String javascript)
public void uninstallNode(Component component,
org.wicketstuff.push.IPushNode<?> node)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||