Package com.vaadin.flow.server
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jsoup.nodes.ElementcreateInlineJavaScriptElement(String javaScriptContents) protected static org.jsoup.nodes.ElementcreateJavaScriptElement(String sourceUrl) protected static org.jsoup.nodes.ElementcreateJavaScriptElement(String sourceUrl, boolean defer) protected static org.jsoup.nodes.ElementcreateJavaScriptElement(String sourceUrl, boolean defer, String type) protected static org.jsoup.nodes.ElementcreateJavaScriptModuleElement(String sourceUrl, boolean defer) org.jsoup.nodes.DocumentReturns the bootstrap page for the given context.protected org.jsoup.nodes.ElementgetBootstrapScript(tools.jackson.databind.node.ObjectNode initialUIDL, BootstrapHandler.BootstrapContext context) getChunkKeys(tools.jackson.databind.node.ObjectNode chunks) Return the list of chunk keys that should be considered by the bootstrap handler.protected voidsetupCss(org.jsoup.nodes.Element head, BootstrapHandler.BootstrapContext context)
-
Constructor Details
-
BootstrapPageBuilder
protected BootstrapPageBuilder()
-
-
Method Details
-
getBootstrapPage
Returns the bootstrap page for the given context.- Specified by:
getBootstrapPagein interfaceBootstrapHandler.PageBuilder- Parameters:
context- Context to generate bootstrap page for.- Returns:
- A document with the corresponding HTML page.
-
getChunkKeys
Return the list of chunk keys that should be considered by the bootstrap handler.- Parameters:
chunks- in the stat file- Returns:
- the list of chunk keys to process
-
setupCss
-
createInlineJavaScriptElement
-
createJavaScriptElement
-
createJavaScriptModuleElement
protected static org.jsoup.nodes.Element createJavaScriptModuleElement(String sourceUrl, boolean defer) -
createJavaScriptElement
-
createJavaScriptElement
-
getBootstrapScript
protected org.jsoup.nodes.Element getBootstrapScript(tools.jackson.databind.node.ObjectNode initialUIDL, BootstrapHandler.BootstrapContext context)
-