public class CometServerPush
extends org.zkoss.zkex.ui.comet.CometServerPush
| Constructor and Description |
|---|
CometServerPush()
The default constructor.
|
CometServerPush(boolean async) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeUpdate(org.zkoss.zkex.ui.comet.CometServerPush.ThreadInfo info) |
protected String |
getStartScript() |
protected String |
getStopScript() |
protected void |
onStart() |
protected void |
processRequest(org.zkoss.zk.ui.Execution exec,
org.zkoss.zkex.ui.comet.CometServerPush.AsyncInfo ai)
Called when receiving the comet request from the client.
|
protected boolean |
setBusy() |
void |
start(org.zkoss.zk.ui.Desktop desktop) |
public CometServerPush()
If you prefer to disable the use of Servlet 3 or vice versa, you could
specify a library property called org.zkoss.zkmax.ui.comet.async.disabled.
Notice that enabling the asynchronous support in a server not supporting Servlet 3
is not allowed.
public CometServerPush(boolean async)
async - whether to utilities Servlet 3 asynchronous processing support.
Don't specify it to true if the server doesn't support Servlet 3. The result
is unpredictable.public void start(org.zkoss.zk.ui.Desktop desktop)
start in interface org.zkoss.zk.ui.sys.ServerPushstart in class org.zkoss.zkex.ui.comet.CometServerPushprotected String getStartScript()
getStartScript in class org.zkoss.zkex.ui.comet.CometServerPushprotected String getStopScript()
getStopScript in class org.zkoss.zkex.ui.comet.CometServerPushprotected void onStart()
onStart in class org.zkoss.zkex.ui.comet.CometServerPushprotected boolean setBusy()
setBusy in class org.zkoss.zkex.ui.comet.CometServerPushprotected void processRequest(org.zkoss.zk.ui.Execution exec,
org.zkoss.zkex.ui.comet.CometServerPush.AsyncInfo ai)
throws IOException
processRequest in class org.zkoss.zkex.ui.comet.CometServerPushIOExceptionprotected void beforeUpdate(org.zkoss.zkex.ui.comet.CometServerPush.ThreadInfo info)
beforeUpdate in class org.zkoss.zkex.ui.comet.CometServerPushCopyright © 2026. All rights reserved.