Class BootstrapHandler.BootstrapContext

    • Constructor Detail

      • BootstrapContext

        public BootstrapContext​(VaadinResponse response,
                                BootstrapFragmentResponse bootstrapResponse)
        Creates a new context instance using the given Vaadin/HTTP response and bootstrap response.
        Parameters:
        response - the response object
        bootstrapResponse - the bootstrap response object
    • Method Detail

      • getResponse

        public VaadinResponse getResponse()
        Gets the Vaadin/HTTP response.
        Returns:
        the Vaadin/HTTP response
      • getRequest

        public VaadinRequest getRequest()
        Gets the Vaadin/HTTP request.
        Returns:
        the Vaadin/HTTP request
      • getSession

        public VaadinSession getSession()
        Gets the Vaadin session.
        Returns:
        the Vaadin session
      • getUIClass

        public Class<? extends UI> getUIClass()
        Gets the UI class which will be used.
        Returns:
        the UI class
      • getWidgetsetInfo

        public WidgetsetInfo getWidgetsetInfo()
        Gets information about the widgetset to use.
        Returns:
        the widgetset which will be loaded
      • getThemeName

        public String getThemeName()
        Gets the name of the theme to use.
        Returns:
        the name of the theme, with special characters escaped or removed
      • getPushMode

        public PushMode getPushMode()
        Gets the push mode to use.
        Returns:
        the desired push mode
      • getBootstrapResponse

        public BootstrapFragmentResponse getBootstrapResponse()
        Gets the bootstrap response object.
        Returns:
        the bootstrap response object
      • getApplicationParameters

        public elemental.json.JsonObject getApplicationParameters()
        Gets the application parameters specified by the BootstrapHandler.
        Returns:
        the application parameters which will be written on the page