Class UserPortalPageInitBean

  • All Implemented Interfaces:
    Serializable

    @Named
    @ViewScoped
    public class UserPortalPageInitBean
    extends Object
    implements Serializable
    When the HTTP websocket client is used, delays the rendering of the page until the websocket is connected.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • UserPortalPageInitBean

        public UserPortalPageInitBean()
    • Method Detail

      • isCanRender

        public boolean isCanRender()
        Checks if the page can be rendered. If the websocket client is used, the page can only be rendered after the websocket connection was established. Otherwise, the page can be rendered immediately.
        Returns:
        Whether the page can be rendered.
      • setCanRender

        public void setCanRender​(boolean canRender)
      • onWebsocketInit

        public void onWebsocketInit()
                             throws Exception
        Called when the websocket connection was established. Invokes all pending callbacks.
        Throws:
        Exception - If an error occurs during the callback.