com.vaadin.flow.server.
Class BootstrapHandler.BootstrapPageBuilder
- java.lang.Object
-
- com.vaadin.flow.server.BootstrapHandler.BootstrapPageBuilder
-
All Implemented Interfaces:
Enclosing class:
protected static final 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 and Description protected
BootstrapPageBuilder()
-
Method Summary
All Methods Modifier and Type Method and Description org.jsoup.nodes.Document
getBootstrapPage(BootstrapHandler.BootstrapContext context)
Returns the bootstrap page for the given context.
protected elemental.json.JsonObject
getInitialUidl(UI ui)
Generates the initial UIDL message which is included in the initial bootstrap page.
-
-
-
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.
-
getInitialUidl
protected elemental.json.JsonObject getInitialUidl(UI ui)
Generates the initial UIDL message which is included in the initial bootstrap page.
Parameters:
ui
- the UI for which the UIDL should be generatedReturns:
a JSON object with the initial UIDL message
-
-