We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.
Class BootstrapHandler.BootstrapPageBuilder
- java.lang.Object
-
- com.vaadin.flow.server.BootstrapHandler.BootstrapPageBuilder
-
All Implemented Interfaces:
Enclosing class:
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:
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BootstrapPageBuilder()
-
Method Summary
All Methods Modifier and Type Method Description protected 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
getBootstrapPage(BootstrapHandler.BootstrapContext context)
Returns the bootstrap page for the given context.
protected org.jsoup.nodes.Element
getBootstrapScript(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 void
setupCss(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:
getBootstrapPage
in 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 fileReturns:
-
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)
-
-