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.Element
createInlineJavaScriptElement
(String javaScriptContents) protected static org.jsoup.nodes.Element
createJavaScriptElement
(String sourceUrl) protected static org.jsoup.nodes.Element
createJavaScriptElement
(String sourceUrl, boolean defer) protected static org.jsoup.nodes.Element
createJavaScriptElement
(String sourceUrl, boolean defer, String type) protected static org.jsoup.nodes.Element
createJavaScriptModuleElement
(String sourceUrl, boolean defer) org.jsoup.nodes.Document
Returns the bootstrap page for the given context.protected org.jsoup.nodes.Element
getBootstrapScript
(elemental.json.JsonValue initialUIDL, BootstrapHandler.BootstrapContext context) getChunkKeys
(elemental.json.JsonObject chunks) Return the list of chunk keys that should be considered by the bootstrap handler.protected void
setupCss
(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:
getBootstrapPage
in 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:
-
setupCss
-
createInlineJavaScriptElement
-
createJavaScriptElement
-
createJavaScriptModuleElement
protected static org.jsoup.nodes.Element createJavaScriptModuleElement(String sourceUrl, boolean defer) -
createJavaScriptElement
-
createJavaScriptElement
-
getBootstrapScript
protected org.jsoup.nodes.Element getBootstrapScript(elemental.json.JsonValue initialUIDL, BootstrapHandler.BootstrapContext context)
-