public class BootstrapPageResponse extends Object
Constructor and Description |
---|
BootstrapPageResponse(VaadinRequest request,
VaadinSession session,
VaadinResponse response,
org.jsoup.nodes.Document document,
UI ui,
VaadinUriResolver uriResolver)
Create 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.
|
VaadinRequest |
getRequest()
Gets the request for which the generated bootstrap HTML will be the
response.
|
VaadinResponse |
getResponse()
Gets the HTTP response that serves the bootstrap page.
|
VaadinSession |
getSession()
Gets the service session to which the rendered view belongs.
|
UI |
getUI()
Gets the UI that will be displayed on the generated bootstrap page.
|
VaadinUriResolver |
getUriResolver()
Gets the URI resolver utility.
|
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.
|
public BootstrapPageResponse(VaadinRequest request, VaadinSession session, VaadinResponse response, org.jsoup.nodes.Document document, UI ui, VaadinUriResolver uriResolver)
request
- the Vaadin request for which the bootstrap page should be
generated.session
- the service session for which the bootstrap page should be
generated.response
- the Vaadin response that serves the bootstrap page.document
- the DOM document making up the HTML page.uriResolver
- the uri resolver utilityui
- the UI for the bootstrap.public VaadinResponse getResponse()
public void setHeader(String name, String value)
name
- the name of the header.value
- the header value.VaadinResponse.setHeader(String, String)
public void setDateHeader(String name, long timestamp)
name
- the name of the header.timestamp
- the number of milliseconds since epoch.setHeader(String, String)
,
VaadinResponse.setDateHeader(String, long)
public org.jsoup.nodes.Document getDocument()
public VaadinRequest getRequest()
public VaadinSession getSession()
public UI getUI()
public VaadinUriResolver getUriResolver()
Copyright © 2023. All rights reserved.