com.vaadin.server.

Class BootstrapResponse

    • Constructor Detail

      • BootstrapResponse

        public BootstrapResponse​(BootstrapHandler handler,
                                 VaadinRequest request,
                                 VaadinSession session,
                                 Class<? extends UI> uiClass,
                                 UIProvider uiProvider)

        Creates a new bootstrap event.

        Parameters:

        handler - the bootstrap handler that is firing the event

        request - the Vaadin request for which the bootstrap page should be generated

        session - the session for which the bootstrap page should be generated

        uiClass - the class of the UI that will be displayed on the page

        uiProvider - the UI provider for the bootstrap

    • Method Detail

      • getBootstrapHandler

        public BootstrapHandler getBootstrapHandler()

        Gets the bootstrap handler that fired this event.

        Returns:

        the bootstrap handler that fired this event

      • getRequest

        public VaadinRequest getRequest()

        Gets the request for which the generated bootstrap HTML will be the response. This can be used to read request headers and other additional information. Please note that VaadinSession.getBrowser() will not be available because the bootstrap page is generated before the bootstrap javascript has had a chance to send any information back to the server.

        Returns:

        the Vaadin request that is being handled

      • getSession

        public VaadinSession getSession()

        Gets the service session to which the rendered view belongs.

        Returns:

        the Vaadin service session

      • getUiClass

        public Class<? extends UI> getUiClass()

        Gets the class of the UI that will be displayed on the generated bootstrap page.

        Returns:

        the class of the UI

      • getUIProvider

        public UIProvider getUIProvider()

        Gets the UI provider that is used to provide information about the bootstrapped UI.

        Returns:

        the UI provider

      • setUriResolver

        public void setUriResolver​(VaadinUriResolver uriResolver)

        Sets the URI resolver used in the bootstrap process.

        Parameters:

        uriResolver - the uri resolver which is used

        Since:

        8.1

      • getUriResolver

        public VaadinUriResolver getUriResolver()

        Gets the URI resolver used in the bootstrap process.

        Returns:

        the URI resolver

        Since:

        8.1