|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.SynchronizedRequestHandler
com.vaadin.server.BootstrapHandler
@Deprecated public abstract class BootstrapHandler
Nested Class Summary | |
---|---|
protected class |
BootstrapHandler.BootstrapContext
Deprecated. |
Field Summary | |
---|---|
static java.lang.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 | |
---|---|
BootstrapHandler()
Deprecated. |
Method Summary | |
---|---|
protected void |
appendMainScriptTagContents(BootstrapHandler.BootstrapContext context,
java.lang.StringBuilder builder)
Deprecated. |
protected boolean |
canHandleRequest(VaadinRequest request)
Deprecated. Check whether a request may be handled by this handler. |
java.lang.String |
findAndEscapeThemeName(BootstrapHandler.BootstrapContext context)
Deprecated. Do not override. |
protected elemental.json.JsonObject |
getApplicationParameters(BootstrapHandler.BootstrapContext context)
Deprecated. |
protected java.lang.String |
getMainDivStyle(BootstrapHandler.BootstrapContext context)
Deprecated. |
protected abstract java.lang.String |
getServiceUrl(BootstrapHandler.BootstrapContext context)
Deprecated. |
java.lang.String |
getThemeName(BootstrapHandler.BootstrapContext context)
Deprecated. Override if required |
java.lang.String |
getThemeUri(BootstrapHandler.BootstrapContext context,
java.lang.String themeName)
Deprecated. Get the URI for the application theme. |
java.lang.String |
getWidgetsetForUI(BootstrapHandler.BootstrapContext context)
Deprecated. |
boolean |
synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Deprecated. Identical to SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except the VaadinSession is locked before this is called and
unlocked after this has completed. |
protected void |
writeError(VaadinResponse response,
java.lang.Throwable e)
Deprecated. |
Methods inherited from class com.vaadin.server.SynchronizedRequestHandler |
---|
handleRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IGNORE_RESTART_PARAM
Constructor Detail |
---|
public BootstrapHandler()
Method Detail |
---|
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 handle
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.public boolean synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws java.io.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.
java.io.IOException
- If an IO error occurredSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
protected java.lang.String getMainDivStyle(BootstrapHandler.BootstrapContext context)
public java.lang.String getWidgetsetForUI(BootstrapHandler.BootstrapContext context)
protected void appendMainScriptTagContents(BootstrapHandler.BootstrapContext context, java.lang.StringBuilder builder) throws java.io.IOException
java.io.IOException
protected elemental.json.JsonObject getApplicationParameters(BootstrapHandler.BootstrapContext context)
protected abstract java.lang.String getServiceUrl(BootstrapHandler.BootstrapContext context)
public java.lang.String getThemeUri(BootstrapHandler.BootstrapContext context, java.lang.String themeName)
context
- themeName
-
public java.lang.String getThemeName(BootstrapHandler.BootstrapContext context)
context
-
public java.lang.String findAndEscapeThemeName(BootstrapHandler.BootstrapContext context)
context
-
protected void writeError(VaadinResponse response, java.lang.Throwable e) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |