Interface IndexHtmlRequestListener

All Superinterfaces:
EventListener, Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IndexHtmlRequestListener extends EventListener, Serializable
This event listener is notified when the Single Page Application's HTML page is about to be generated and sent to the client. The Index HTML response is first constructed as an in-memory DOM representation which registered listeners can modify before the final HTML is generated.

Index HTML request listeners are registered using the ServiceInitEvent during the initialization of the application.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The method allows to modify the Index HTML response before it is sent to browser.
  • Method Details

    • modifyIndexHtmlResponse

      void modifyIndexHtmlResponse(IndexHtmlResponse indexHtmlResponse)
      The method allows to modify the Index HTML response before it is sent to browser.
      Parameters:
      indexHtmlResponse - the response object which includes the VaadinRequest, VaadinResponse, and Document