Class WebSocketDesktopInit

  • All Implemented Interfaces:
    DesktopInit

    public class WebSocketDesktopInit
    extends java.lang.Object
    implements DesktopInit
    A DesktopInit implementation for WebSocket connections.
    Since:
    8.5.0
    Author:
    wenninghsu
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(Desktop desktop, java.lang.Object request)
      Called when a desktop is created and initialized.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSocketDesktopInit

        public WebSocketDesktopInit()
    • Method Detail

      • init

        public void init​(Desktop desktop,
                         java.lang.Object request)
                  throws java.lang.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:
        java.lang.Exception