Class BootstrapHandler.BootstrapPageBuilder

java.lang.Object
com.vaadin.flow.server.BootstrapHandler.BootstrapPageBuilder
All Implemented Interfaces:
BootstrapHandler.PageBuilder, Serializable
Enclosing class:
BootstrapHandler

protected static class BootstrapHandler.BootstrapPageBuilder extends Object implements BootstrapHandler.PageBuilder
Builds bootstrap pages. Do not subclass this, unless you really know why you are doing it.
See Also:
  • Constructor Details

    • BootstrapPageBuilder

      protected BootstrapPageBuilder()
  • Method Details

    • getBootstrapPage

      public org.jsoup.nodes.Document getBootstrapPage(BootstrapHandler.BootstrapContext context)
      Returns the bootstrap page for the given context.
      Specified by:
      getBootstrapPage in interface BootstrapHandler.PageBuilder
      Parameters:
      context - Context to generate bootstrap page for.
      Returns:
      A document with the corresponding HTML page.
    • getChunkKeys

      protected List<String> getChunkKeys(elemental.json.JsonObject chunks)
      Return the list of chunk keys that should be considered by the bootstrap handler.
      Parameters:
      chunks - in the stat file
      Returns:
    • setupCss

      protected void setupCss(org.jsoup.nodes.Element head, BootstrapHandler.BootstrapContext context)
    • createInlineJavaScriptElement

      protected org.jsoup.nodes.Element createInlineJavaScriptElement(String javaScriptContents)
    • createJavaScriptElement

      protected static org.jsoup.nodes.Element createJavaScriptElement(String sourceUrl, boolean defer)
    • createJavaScriptModuleElement

      protected static org.jsoup.nodes.Element createJavaScriptModuleElement(String sourceUrl, boolean defer)
    • createJavaScriptElement

      protected static org.jsoup.nodes.Element createJavaScriptElement(String sourceUrl, boolean defer, String type)
    • createJavaScriptElement

      protected static org.jsoup.nodes.Element createJavaScriptElement(String sourceUrl)
    • getBootstrapScript

      protected org.jsoup.nodes.Element getBootstrapScript(elemental.json.JsonValue initialUIDL, BootstrapHandler.BootstrapContext context)