Class IndexHtmlResponse
- java.lang.Object
-
- com.vaadin.flow.server.communication.IndexHtmlResponse
-
public class IndexHtmlResponse extends Object
This represents the state of a Index HTML response being generated. The Index HTML response contains of the full DOM of the HTML document as well as the HTTP headers that will be included in the corresponding HTTP response.
-
-
Constructor Summary
Constructors Constructor Description IndexHtmlResponse(VaadinRequest vaadinRequest, VaadinResponse vaadinResponse, org.jsoup.nodes.Document document)Create a response object for client side bootstrapping.IndexHtmlResponse(VaadinRequest vaadinRequest, VaadinResponse vaadinResponse, org.jsoup.nodes.Document document, UI ui)Create a response object for client side bootstrapping with UI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jsoup.nodes.DocumentgetDocument()Get the index.html response in form of aDocumentinstance.Optional<UI>getUI()Gets the UI that will be displayed on the generated HTML page.VaadinRequestgetVaadinRequest()Get the request which triggers the Index HTML response.VaadinResponsegetVaadinResponse()Get the Vaadin response object including all the headers which will be sent to browser.
-
-
-
Constructor Detail
-
IndexHtmlResponse
public IndexHtmlResponse(VaadinRequest vaadinRequest, VaadinResponse vaadinResponse, org.jsoup.nodes.Document document, UI ui)
Create a response object for client side bootstrapping with UI.- Parameters:
vaadinRequest- the vaadin request which is handlingvaadinResponse- the corresponding vaadin responsedocument- theDocumentobject of the response pageui- the UI for the bootstrap
-
IndexHtmlResponse
public IndexHtmlResponse(VaadinRequest vaadinRequest, VaadinResponse vaadinResponse, org.jsoup.nodes.Document document)
Create a response object for client side bootstrapping.- Parameters:
vaadinRequest- the vaadin request which is handlingvaadinResponse- the corresponding vaadin responsedocument- theDocumentobject of the response page
-
-
Method Detail
-
getVaadinRequest
public VaadinRequest getVaadinRequest()
Get the request which triggers the Index HTML response.- Returns:
- the Vaadin request
-
getVaadinResponse
public VaadinResponse getVaadinResponse()
Get the Vaadin response object including all the headers which will be sent to browser.- Returns:
- the Vaadin response
-
getDocument
public org.jsoup.nodes.Document getDocument()
Get the index.html response in form of aDocumentinstance.- Returns:
- the index document
-
-