public class BootstrapPageResponse extends BootstrapResponse
source| Constructor and Description |
|---|
BootstrapPageResponse(BootstrapHandler handler,
VaadinRequest request,
VaadinSession session,
Class<? extends UI> uiClass,
org.jsoup.nodes.Document document,
Map<String,Object> headers,
UIProvider uiProvider)
Crate a new bootstrap page response.
|
| Modifier and Type | Method and Description |
|---|---|
org.jsoup.nodes.Document |
getDocument()
Gets the document node representing the root of the DOM hierarchy that
will be used to generate the HTML page.
|
void |
setDateHeader(String name,
long timestamp)
Properly formats a timestamp as a date in a header that will be included
in the HTTP response.
|
void |
setHeader(String name,
String value)
Sets a header value that will be added to the HTTP response.
|
getBootstrapHandler, getRequest, getSession, getUiClass, getUIProvidergetSource, toStringpublic BootstrapPageResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, org.jsoup.nodes.Document document, Map<String,Object> headers, UIProvider uiProvider)
handler - the bootstrap handler that is firing the eventrequest - the Vaadin request for which the bootstrap page should be
generatedsession - the service session for which the bootstrap page should be
generateduiClass - the class of the UI that will be displayed on the pagedocument - the DOM document making up the HTML pageheaders - a map into which header data can be addeduiProvider - the UI provider for the bootstrapBootstrapResponse#BootstrapResponse(BootstrapHandler, VaadinRequest,
VaadinSession, Class)public void setHeader(String name, String value)
name - the name of the headervalue - the header valueVaadinResponse.setHeader(String, String)public void setDateHeader(String name, long timestamp)
name - the name of the headertimestamp - the number of milliseconds since epochsetHeader(String, String),
VaadinResponse.setDateHeader(String, long)public org.jsoup.nodes.Document getDocument()
Copyright © 2022 Vaadin Ltd. All rights reserved.