@Deprecated public abstract class BootstrapHandler extends SynchronizedRequestHandler
| Modifier and Type | Class and Description |
|---|---|
protected class |
BootstrapHandler.BootstrapContext
Deprecated.
Provides context information for the bootstrap process.
|
protected static class |
BootstrapHandler.BootstrapUriResolver
Deprecated.
The URI resolver used in the bootstrap process.
|
| 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.
|
handleRequestpublic static final String IGNORE_RESTART_PARAM
public static String resolveFrontendUrl(VaadinSession session)
session - the session of the user to resolve the protocol forprotected boolean canHandleRequest(VaadinRequest request)
SynchronizedRequestHandlertrue which means that all requests will be handled by
calling
SynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession, VaadinRequest, VaadinResponse)
with the session locked.canHandleRequest in class SynchronizedRequestHandlerrequest - 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
SynchronizedRequestHandlerSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except the VaadinSession is locked before this is called and
unlocked after this has completed.synchronizedHandleRequest in class SynchronizedRequestHandlersession - 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
IOExceptionprotected JsonObject getApplicationParameters(BootstrapHandler.BootstrapContext context)
protected abstract String getContextRootPath(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
IOExceptionCopyright © 2018 Vaadin Ltd. All rights reserved.