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, Serializable
Builds bootstrap pages. Do not subclass this, unless you really know why you are doing it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBootstrapPageBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.DocumentgetBootstrapPage(BootstrapHandler.BootstrapContext context)Returns the bootstrap page for the given context.protected org.jsoup.nodes.ElementgetBootstrapScript(elemental.json.JsonValue initialUIDL, BootstrapHandler.BootstrapContext context)protected List<String>getChunkKeys(elemental.json.JsonObject 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)
-
-
-
Method Detail
-
getBootstrapPage
public org.jsoup.nodes.Document getBootstrapPage(BootstrapHandler.BootstrapContext context)
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
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)
-
-