public abstract class BootstrapResponse extends EventObject
source
Constructor and Description |
---|
BootstrapResponse(BootstrapHandler handler,
VaadinRequest request,
VaadinSession session,
Class<? extends UI> uiClass,
UIProvider uiProvider)
Creates a new bootstrap event.
|
Modifier and Type | Method and Description |
---|---|
BootstrapHandler |
getBootstrapHandler()
Gets the bootstrap handler that fired this event.
|
VaadinRequest |
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
bootstrapped UI.
|
VaadinUriResolver |
getUriResolver()
Gets the URI resolver used in the bootstrap process.
|
void |
setUriResolver(VaadinUriResolver uriResolver)
Sets the URI resolver used in the bootstrap process.
|
getSource, toString
public BootstrapResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, UIProvider uiProvider)
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 bootstrappublic BootstrapHandler getBootstrapHandler()
public VaadinRequest getRequest()
VaadinSession.getBrowser()
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.public VaadinSession getSession()
public Class<? extends UI> getUiClass()
public UIProvider getUIProvider()
public void setUriResolver(VaadinUriResolver uriResolver)
uriResolver
- the uri resolver which is usedpublic VaadinUriResolver getUriResolver()
Copyright © 2019 Vaadin Ltd. All rights reserved.