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.JavaScriptBootstrapContextBootstrapHandler.BootstrapContext, BootstrapHandler.BootstrapPageBuilder, BootstrapHandler.BootstrapUriResolver, BootstrapHandler.PageBuilderSERVICE_WORKER_HEADER| 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) |
protected boolean |
isRequestForHtml(VaadinRequest request)
Checks if the request is potentially a request for an HTML page.
|
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, getServiceUrlgetInitialUidl, getPageBuilder, getPushScript, getUIClass, isFrameworkInternalRequest, readResource, resolvePageTitle, setupErrorDialogs, setupPushConnectionFactory, setupPwa, showWebpackErrors, writeErrorCodeIfRequestLocationIsInvalidhandleRequestpublic 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 JavaScriptBootstrapHandlersession - 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)
SynchronizedRequestHandlertrue which means that all requests will be handled by
calling
SynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession, VaadinRequest, VaadinResponse)
with the session locked.canHandleRequest in class JavaScriptBootstrapHandlerrequest - 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 boolean isRequestForHtml(VaadinRequest request)
request - the request to checktrue if the request is potentially for HTML,
false if it is certain that it is a request for a script,
image or something elseprotected void initializeUIWithRouter(BootstrapHandler.BootstrapContext context, UI ui)
initializeUIWithRouter in class JavaScriptBootstrapHandlerCopyright © 2023. All rights reserved.