@Deprecated public abstract class BootstrapHandler extends SynchronizedRequestHandler
Modifier and Type | Class and Description |
---|---|
protected class |
BootstrapHandler.BootstrapContext
Deprecated.
|
Modifier and Type | Field and 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 and Description |
---|
BootstrapHandler()
Deprecated.
|
handleRequest
public static final String IGNORE_RESTART_PARAM
protected boolean canHandleRequest(VaadinRequest request)
SynchronizedRequestHandler
true
which means that all requests will be handled by
calling
SynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession, VaadinRequest, VaadinResponse)
with the session locked.canHandleRequest
in class SynchronizedRequestHandler
request
- the request to handletrue
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.public boolean synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException
SynchronizedRequestHandler
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except the VaadinSession
is locked before this is called and
unlocked after this has completed.synchronizedHandleRequest
in class SynchronizedRequestHandler
session
- The session for the requestrequest
- The request to handleresponse
- The response object to which a response can be written.IOException
- If an IO error occurredSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
protected String getMainDivStyle(BootstrapHandler.BootstrapContext context)
public WidgetsetInfo getWidgetsetForUI(BootstrapHandler.BootstrapContext context)
protected void appendMainScriptTagContents(BootstrapHandler.BootstrapContext context, StringBuilder builder) throws IOException
IOException
protected JsonObject getApplicationParameters(BootstrapHandler.BootstrapContext context)
protected abstract String getServiceUrl(BootstrapHandler.BootstrapContext context)
public String getThemeUri(BootstrapHandler.BootstrapContext context, String themeName)
context
- themeName
- public String getThemeName(BootstrapHandler.BootstrapContext context)
context
- public String findAndEscapeThemeName(BootstrapHandler.BootstrapContext context)
context
- protected void writeError(VaadinResponse response, Throwable e) throws IOException
IOException
Copyright © 2019 Vaadin Ltd. All rights reserved.