Package com.vaadin.flow.server
Interface BootstrapListener
-
- 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 @Deprecated public interface BootstrapListener extends EventListener, Serializable
Deprecated.Since 3.0, this API is deprecated in favor ofIndexHtmlRequestListener
when using client-side bootstrappingThis event listener is notified when the bootstrap HTML is about to be generated and sent to the client. The bootstrap HTML is first constructed as an in-memory DOM representation which registered listeners can modify before the final HTML is generated.BootstrapListeners are registered using the
ServiceInitEvent
during the initialization of the application.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
ServiceInitEvent.addBootstrapListener(BootstrapListener)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
modifyBootstrapPage(BootstrapPageResponse response)
Deprecated.Lets this listener make changes to the overall HTML document that will be used as the initial HTML page, as well as the HTTP headers in the response serving the initial HTML.
-
-
-
Method Detail
-
modifyBootstrapPage
void modifyBootstrapPage(BootstrapPageResponse response)
Deprecated.Lets this listener make changes to the overall HTML document that will be used as the initial HTML page, as well as the HTTP headers in the response serving the initial HTML.- Parameters:
response
- the bootstrap response that can be modified to cause change in the generate HTML and in the HTTP headers of the response.
-
-