com.vaadin.flow.server.communication.
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 Modifier and Type Method Description org.jsoup.nodes.Document
getDocument()
Get the index.html response in form of a
Document
instance.Optional<UI>
getUI()
Gets the UI that will be displayed on the generated HTML page.
VaadinRequest
getVaadinRequest()
Get the request which triggers the Index HTML response.
VaadinResponse
getVaadinResponse()
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
- theDocument
object 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
- theDocument
object 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 a
Document
instance.Returns:
the index document
-
-