Package com.vaadin.server
Class BootstrapHandler.BootstrapContext
- java.lang.Object
-
- com.vaadin.server.BootstrapHandler.BootstrapContext
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BootstrapHandler
protected class BootstrapHandler.BootstrapContext extends Object implements Serializable
Provides context information for the bootstrap process.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BootstrapContext(VaadinResponse response, BootstrapFragmentResponse bootstrapResponse)Creates a new context instance using the given Vaadin/HTTP response and bootstrap response.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAppId()Gets the application id.elemental.json.JsonObjectgetApplicationParameters()Gets the application parameters specified by the BootstrapHandler.BootstrapFragmentResponsegetBootstrapResponse()Gets the bootstrap response object.PushModegetPushMode()Gets the push mode to use.VaadinRequestgetRequest()Gets the Vaadin/HTTP request.VaadinResponsegetResponse()Gets the Vaadin/HTTP response.VaadinSessiongetSession()Gets the Vaadin session.StringgetThemeName()Gets the name of the theme to use.Class<? extends UI>getUIClass()Gets the UI class which will be used.BootstrapHandler.BootstrapUriResolvergetUriResolver()Gets the URI resolver to use for bootstrap resources.WidgetsetInfogetWidgetsetInfo()Gets information about the widgetset to use.StringgetWidgetsetName()Deprecated.usegetWidgetsetInfo()instead
-
-
-
Constructor Detail
-
BootstrapContext
public BootstrapContext(VaadinResponse response, BootstrapFragmentResponse bootstrapResponse)
Creates a new context instance using the given Vaadin/HTTP response and bootstrap response.- Parameters:
response- the response objectbootstrapResponse- the bootstrap response object
-
-
Method Detail
-
getResponse
public VaadinResponse getResponse()
Gets the Vaadin/HTTP response.- Returns:
- the Vaadin/HTTP response
-
getRequest
public VaadinRequest getRequest()
Gets the Vaadin/HTTP request.- Returns:
- the Vaadin/HTTP request
-
getSession
public VaadinSession getSession()
Gets the Vaadin session.- Returns:
- the Vaadin session
-
getUIClass
public Class<? extends UI> getUIClass()
Gets the UI class which will be used.- Returns:
- the UI class
-
getWidgetsetInfo
public WidgetsetInfo getWidgetsetInfo()
Gets information about the widgetset to use.- Returns:
- the widgetset which will be loaded
-
getWidgetsetName
@Deprecated public String getWidgetsetName()
Deprecated.usegetWidgetsetInfo()instead- Returns:
- returns the name of the widgetset to use
-
getThemeName
public String getThemeName()
Gets the name of the theme to use.- Returns:
- the name of the theme, with special characters escaped or removed
-
getPushMode
public PushMode getPushMode()
Gets the push mode to use.- Returns:
- the desired push mode
-
getAppId
public String getAppId()
Gets the application id. The application id is defined byVaadinService.getMainDivId(VaadinSession, VaadinRequest, Class)- Returns:
- the application id
-
getBootstrapResponse
public BootstrapFragmentResponse getBootstrapResponse()
Gets the bootstrap response object.- Returns:
- the bootstrap response object
-
getApplicationParameters
public elemental.json.JsonObject getApplicationParameters()
Gets the application parameters specified by the BootstrapHandler.- Returns:
- the application parameters which will be written on the page
-
getUriResolver
public BootstrapHandler.BootstrapUriResolver getUriResolver()
Gets the URI resolver to use for bootstrap resources.- Returns:
- the URI resolver
- Since:
- 8.1
-
-