Class CometServerPush

java.lang.Object
org.zkoss.zkex.ui.comet.CometServerPush
org.zkoss.zkmax.ui.comet.CometServerPush
All Implemented Interfaces:
ServerPush

public class CometServerPush extends CometServerPush
ZK Comet that supports Servlet 3 asynchronous processing. This implementation will detect if the server supports Servlet 3, and then use the right implementation automatically.
Since:
6.0.0
Author:
tomyeh
  • Constructor Details

    • CometServerPush

      public CometServerPush()
      The default constructor. It detects if the server supports Servlet 3, and then use the right implementation accordingly.

      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.

    • CometServerPush

      public CometServerPush(boolean async)
      Parameters:
      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.
  • Method Details