Package com.vaadin.server
Class BootstrapHandler
- java.lang.Object
-
- com.vaadin.server.SynchronizedRequestHandler
-
- com.vaadin.server.BootstrapHandler
-
- All Implemented Interfaces:
RequestHandler
,Serializable
- Direct Known Subclasses:
ServletBootstrapHandler
@Deprecated public abstract class BootstrapHandler extends SynchronizedRequestHandler
Deprecated.As of 7.0. Will likely change or be removed in a future version- Since:
- 7.0.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BootstrapHandler.BootstrapContext
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static String
IGNORE_RESTART_PARAM
Deprecated.Parameter that is added to the UI init request if the session has already been restarted when generating the bootstrap HTML and ?restartApplication should thus be ignored when handling the UI init request.
-
Constructor Summary
Constructors Constructor Description BootstrapHandler()
Deprecated.
-
Method Summary
-
Methods inherited from class com.vaadin.server.SynchronizedRequestHandler
handleRequest
-
-
-
-
Field Detail
-
IGNORE_RESTART_PARAM
public static final String IGNORE_RESTART_PARAM
Deprecated.Parameter that is added to the UI init request if the session has already been restarted when generating the bootstrap HTML and ?restartApplication should thus be ignored when handling the UI init request.- See Also:
- Constant Field Values
-
-
Method Detail
-
canHandleRequest
protected boolean canHandleRequest(VaadinRequest request)
Deprecated.Description copied from class:SynchronizedRequestHandler
Check whether a request may be handled by this handler. This can be used as an optimization to avoid locking the session just to investigate some method property. The default implementation just returnstrue
which means that all requests will be handled by callingSynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession, VaadinRequest, VaadinResponse)
with the session locked.- Overrides:
canHandleRequest
in classSynchronizedRequestHandler
- Parameters:
request
- the request to handle- Returns:
true
if the request handling should continue once the session has been locked;false
if there's no need to lock the session since the request would still not be handled.
-
synchronizedHandleRequest
public boolean synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException
Deprecated.Description copied from class:SynchronizedRequestHandler
Identical toSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except theVaadinSession
is locked before this is called and unlocked after this has completed.- Specified by:
synchronizedHandleRequest
in classSynchronizedRequestHandler
- Parameters:
session
- The session for the requestrequest
- The request to handleresponse
- The response object to which a response can be written.- Returns:
- true if a response has been written and no further request handlers should be called, otherwise false
- Throws:
IOException
- If an IO error occurred- See Also:
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
-
getMainDivStyle
protected String getMainDivStyle(BootstrapHandler.BootstrapContext context)
Deprecated.
-
getWidgetsetForUI
public WidgetsetInfo getWidgetsetForUI(BootstrapHandler.BootstrapContext context)
Deprecated.
-
appendMainScriptTagContents
protected void appendMainScriptTagContents(BootstrapHandler.BootstrapContext context, StringBuilder builder) throws IOException
Deprecated.- Throws:
IOException
-
getApplicationParameters
protected JsonObject getApplicationParameters(BootstrapHandler.BootstrapContext context)
Deprecated.
-
getServiceUrl
protected abstract String getServiceUrl(BootstrapHandler.BootstrapContext context)
Deprecated.
-
getThemeUri
public String getThemeUri(BootstrapHandler.BootstrapContext context, String themeName)
Deprecated.Get the URI for the application theme. A portal-wide default theme is fetched from the portal shared resource directory (if any), other themes from the portlet.- Parameters:
context
-themeName
-- Returns:
-
getThemeName
public String getThemeName(BootstrapHandler.BootstrapContext context)
Deprecated.Override if required- Parameters:
context
-- Returns:
-
findAndEscapeThemeName
public String findAndEscapeThemeName(BootstrapHandler.BootstrapContext context)
Deprecated.Do not override.- Parameters:
context
-- Returns:
-
writeError
protected void writeError(VaadinResponse response, Throwable e) throws IOException
Deprecated.- Throws:
IOException
-
-