Class WebSocketDesktopInit

java.lang.Object
org.zkoss.zkmax.au.websocket.WebSocketDesktopInit
All Implemented Interfaces:
DesktopInit

public class WebSocketDesktopInit extends Object implements DesktopInit
A DesktopInit implementation for WebSocket connections.
Since:
8.5.0
Author:
wenninghsu
  • Constructor Details

    • WebSocketDesktopInit

      public WebSocketDesktopInit()
  • Method Details

    • init

      public void init(Desktop desktop, Object request) throws Exception
      Description copied from interface: DesktopInit
      Called when a desktop is created and initialized.

      Note: you can access the execution by calling Desktop.getExecution() or Executions.getCurrent().

      Specified by:
      init in interface DesktopInit
      Parameters:
      desktop - the desktop being created and initialized
      request - the request caused the desktop being created. If HTTP and servlet, it is javax.servlet.http.HttpServletRequest. If portlet, it is javax.portlet.RenderRequest.
      Throws:
      Exception