public class IndexHtmlRequestHandler extends JavaScriptBootstrapHandler
index.html
according
to the template provided in the frontend folder. The handler will calculate
and inject baseHref as well as the bundle scripts into the template.
For internal use only. May be renamed or removed in a future release.
JavaScriptBootstrapHandler.JavaScriptBootstrapContext
BootstrapHandler.BootstrapContext, BootstrapHandler.BootstrapPageBuilder, BootstrapHandler.BootstrapUriResolver, BootstrapHandler.PageBuilder
Constructor and Description |
---|
IndexHtmlRequestHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canHandleRequest(VaadinRequest request)
Check whether a request may be handled by this handler.
|
protected void |
initializeUIWithRouter(BootstrapHandler.BootstrapContext context,
UI ui) |
boolean |
synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Identical to
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except the VaadinSession is locked before this is called and
unlocked after this has completed. |
createAndInitUI, createBootstrapContext, getInitialJson, getRequestUrl, getServiceUrl
getInitialUidl, getPageBuilder, getPushScript, getUIClass, isFrameworkInternalRequest, readResource, resolvePageTitle, setupErrorDialogs, setupPushConnectionFactory, setupPwa, showWebpackErrors
handleRequest
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 JavaScriptBootstrapHandler
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 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 JavaScriptBootstrapHandler
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.protected void initializeUIWithRouter(BootstrapHandler.BootstrapContext context, UI ui)
initializeUIWithRouter
in class JavaScriptBootstrapHandler
Copyright © 2021. All rights reserved.