com.vaadin.server.

Class BootstrapFragmentResponse

  • All Implemented Interfaces:

    Serializable

    public class BootstrapFragmentResponse
    extends BootstrapResponse

    A representation of a bootstrap fragment being generated. The bootstrap fragment is the HTML code that will make up the actual application. This also includes the JavaScript that initializes the application.

    Since:

    7.0.0

    Author:

    Vaadin Ltd

    See Also:

    Serialized Form

    • Constructor Detail

      • BootstrapFragmentResponse

        public BootstrapFragmentResponse​(BootstrapHandler handler,
                                         VaadinRequest request,
                                         VaadinSession session,
                                         Class<? extends UI> uiClass,
                                         List<org.jsoup.nodes.Node> fragmentNodes,
                                         UIProvider uiProvider)

        Crate a new bootstrap fragment response.

        Parameters:

        handler - the bootstrap handler that is firing the event

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

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

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

        fragmentNodes - a mutable list containing the DOM nodes that will make up the application HTML

        uiProvider - the UI provider for the bootstrap

        See Also:

        BootstrapResponse(BootstrapHandler, VaadinRequest, VaadinSession, Class, UIProvider)

    • Method Detail

      • getFragmentNodes

        public List<org.jsoup.nodes.Node> getFragmentNodes()

        Gets the list of DOM nodes that will be used to generate the fragment HTML. Changes to the returned list will be reflected in the generated HTML.

        Returns:

        the current list of DOM nodes that makes up the application fragment