Package com.vaadin.server
Class BootstrapResponse
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.server.BootstrapResponse
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BootstrapFragmentResponse
,BootstrapPageResponse
public abstract class BootstrapResponse extends EventObject
Base class providing common functionality used in different bootstrap modification events.- Since:
- 7.0.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description BootstrapResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, UIProvider uiProvider)
Creates a new bootstrap event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BootstrapHandler
getBootstrapHandler()
Gets the bootstrap handler that fired this eventVaadinRequest
getRequest()
Gets the request for which the generated bootstrap HTML will be the response.VaadinSession
getSession()
Gets the service session to which the rendered view belongs.Class<? extends UI>
getUiClass()
Gets the class of the UI that will be displayed on the generated bootstrap page.UIProvider
getUIProvider()
Gets the UI provider that is used to provide information about the bootstapped UI.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
BootstrapResponse
public BootstrapResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, UIProvider uiProvider)
Creates a new bootstrap event.- Parameters:
handler
- the bootstrap handler that is firing the eventrequest
- the Vaadin request for which the bootstrap page should be generatedsession
- the session for which the bootstrap page should be generateduiClass
- the class of the UI that will be displayed on the pageuiProvider
- the UI provider for the bootstrap
-
-
Method Detail
-
getBootstrapHandler
public BootstrapHandler getBootstrapHandler()
Gets the bootstrap handler that fired this event- Returns:
- the bootstrap handler that fired this event
-
getRequest
public VaadinRequest getRequest()
Gets the request for which the generated bootstrap HTML will be the response. This can be used to read request headers and other additional information. Please note thatVaadinRequest#getBrowserDetails()
will not be available because the bootstrap page is generated before the bootstrap javascript has had a chance to send any information back to the server.- Returns:
- the Vaadin request that is being handled
-
getSession
public VaadinSession getSession()
Gets the service session to which the rendered view belongs.- Returns:
- the Vaadin service session
-
getUiClass
public Class<? extends UI> getUiClass()
Gets the class of the UI that will be displayed on the generated bootstrap page.- Returns:
- the class of the UI
-
getUIProvider
public UIProvider getUIProvider()
Gets the UI provider that is used to provide information about the bootstapped UI.- Returns:
- the UI provider
-
-