public class WebSocketServerPush extends Object implements org.zkoss.zk.ui.sys.ServerPush
WebSocketWebAppInit for more information.| Constructor and Description |
|---|
WebSocketServerPush() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate(long timeout) |
boolean |
deactivate(boolean stop) |
boolean |
isActive() |
void |
onPiggyback() |
void |
resume() |
<T extends org.zkoss.zk.ui.event.Event> |
schedule(org.zkoss.zk.ui.event.EventListener<T> listener,
T event,
org.zkoss.zk.ui.sys.Scheduler<T> scheduler) |
void |
setReady(boolean ready) |
protected void |
setWebSocketConnectionInfos(WebSocketEndPoint webSocketEndpoint,
jakarta.servlet.http.HttpServletRequest request) |
void |
start(org.zkoss.zk.ui.Desktop desktop) |
protected void |
startClientPush()
Sends an AU response to the client to start the server push.
|
void |
stop() |
protected void |
wakePending() |
public void setReady(boolean ready)
protected void setWebSocketConnectionInfos(WebSocketEndPoint webSocketEndpoint, jakarta.servlet.http.HttpServletRequest request)
public boolean isActive()
isActive in interface org.zkoss.zk.ui.sys.ServerPushpublic void start(org.zkoss.zk.ui.Desktop desktop)
start in interface org.zkoss.zk.ui.sys.ServerPushpublic void stop()
stop in interface org.zkoss.zk.ui.sys.ServerPushpublic void resume()
resume in interface org.zkoss.zk.ui.sys.ServerPushprotected void startClientPush()
start(org.zkoss.zk.ui.Desktop).
The derived class usually overrides this method to support different devices.
The default implementation is to send an AuScript response.
public <T extends org.zkoss.zk.ui.event.Event> void schedule(org.zkoss.zk.ui.event.EventListener<T> listener,
T event,
org.zkoss.zk.ui.sys.Scheduler<T> scheduler)
schedule in interface org.zkoss.zk.ui.sys.ServerPushpublic boolean activate(long timeout)
throws InterruptedException,
org.zkoss.zk.ui.DesktopUnavailableException
activate in interface org.zkoss.zk.ui.sys.ServerPushInterruptedExceptionorg.zkoss.zk.ui.DesktopUnavailableExceptionpublic boolean deactivate(boolean stop)
deactivate in interface org.zkoss.zk.ui.sys.ServerPushprotected void wakePending()
public void onPiggyback()
onPiggyback in interface org.zkoss.zk.ui.sys.ServerPushCopyright © 2026. All rights reserved.