public class CubaApplicationServlet
extends com.vaadin.server.VaadinServlet
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
classLoader |
protected static java.lang.String |
FROM_HTML_REDIRECT_PARAM |
protected boolean |
initialized |
protected static java.lang.String |
INTERNAL_ERROR_TEXT |
protected static java.lang.String |
REDIRECT_PAGE_TEMPLATE_PATH |
protected Resources |
resources |
protected WebStatisticsAccumulator |
statisticsCounter |
protected WebConfig |
webConfig |
ATMOSPHERE_MISSING_ERROR, CANNOT_ACQUIRE_CLASSLOADER_SEVERE, DEFAULT_BUFFER_SIZE, DEFAULT_THEME_CACHETIME, DEFAULT_THEME_NAME, DEFAULT_WIDGETSET, ERROR_NO_UI_FOUND, INVALID_ATMOSPHERE_VERSION_WARNING, INVALID_SECURITY_KEY_MSG, MAX_BUFFER_SIZE, NOT_PRODUCTION_MODE_INFO, PARAMETER_VAADIN_RESOURCES, PARAMETER_WIDGETSET, PORTAL_PARAMETER_VAADIN_RESOURCE_PATH, PORTAL_PARAMETER_VAADIN_THEME, PORTAL_PARAMETER_VAADIN_WIDGETSET, PORTLET_CONTEXT, PUSH_NOT_SUPPORTED_ERROR, REQUIRED_ATMOSPHERE_RUNTIME_VERSION, SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS, SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION, SERVLET_PARAMETER_HEARTBEAT_INTERVAL, SERVLET_PARAMETER_LEGACY_DESIGN_PREFIX, SERVLET_PARAMETER_PRODUCTION_MODE, SERVLET_PARAMETER_PUSH_MODE, SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING, SERVLET_PARAMETER_RESOURCE_CACHE_TIME, SERVLET_PARAMETER_SENDURLSASPARAMETERS, SERVLET_PARAMETER_SYNC_ID_CHECK, SERVLET_PARAMETER_UI_PROVIDER, THEME_DIR_PATH, URL_PARAMETER_THEME, WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC, WARNING_PUSH_MODE_NOT_RECOGNIZED, WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC, WARNING_XSRF_PROTECTION_DISABLED, WIDGETSET_DIR_PATH, WIDGETSET_MISMATCH_INFO
Constructor and Description |
---|
CubaApplicationServlet() |
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.server.DeploymentConfiguration |
createDeploymentConfiguration(java.util.Properties initParameters) |
protected com.vaadin.server.VaadinServletService |
createServletService(com.vaadin.server.DeploymentConfiguration deploymentConfiguration) |
protected java.lang.String |
getLocaleFromCookie(javax.servlet.http.HttpServletRequest req) |
protected java.lang.String |
getLocalizedTemplateContent(Resources resources,
java.lang.String defaultTemplateName,
java.lang.String locale) |
protected java.lang.String |
getPackageName() |
protected java.lang.String |
getStaticFilePath(javax.servlet.http.HttpServletRequest request) |
protected java.lang.String |
getTargetAction(java.lang.String[] uriParts) |
protected groovy.text.Template |
getTemplate(groovy.text.SimpleTemplateEngine templateEngine,
java.lang.String templateString) |
void |
handleServerError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.Throwable exception) |
protected boolean |
hasUidlPathPrefix(javax.servlet.http.HttpServletRequest request) |
void |
init(javax.servlet.ServletConfig servletConfig) |
protected boolean |
isAllowedVAADINResourceUrl(javax.servlet.http.HttpServletRequest request,
java.net.URL resourceUrl) |
protected java.lang.String |
prepareErrorHtml(javax.servlet.http.HttpServletRequest req,
java.lang.Throwable exception) |
protected void |
redirectToApp(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String contextName,
java.lang.String[] uriParts,
java.lang.String action) |
protected void |
redirectWithBlankHtmlPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.util.Locale |
resolveLocale(javax.servlet.http.HttpServletRequest req,
Messages messages,
GlobalConfig globalConfig) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
serviceAppRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
servletInitialized() |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
allowServePrecompressedResource, createDeploymentConfiguration, createServletService, createVaadinRequest, criticalNotification, destroy, findResourceURL, getApplicationUrl, getCacheTime, getCurrent, getDefaultTheme, getLastPathParameter, getRequestType, getResourcePath, getService, handleContextRootWithoutSlash, isStaticResourceRequest, safeEscapeForHtml, serveStaticResources, serveStaticResourcesInVAADIN, stripSpecialChars, writeStaticResourceResponse
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
protected static final java.lang.String INTERNAL_ERROR_TEXT
protected static final java.lang.String FROM_HTML_REDIRECT_PARAM
protected static final java.lang.String REDIRECT_PAGE_TEMPLATE_PATH
protected WebConfig webConfig
protected Resources resources
protected WebStatisticsAccumulator statisticsCounter
protected volatile java.lang.ClassLoader classLoader
protected volatile boolean initialized
protected com.vaadin.server.VaadinServletService createServletService(com.vaadin.server.DeploymentConfiguration deploymentConfiguration) throws com.vaadin.server.ServiceException
createServletService
in class com.vaadin.server.VaadinServlet
com.vaadin.server.ServiceException
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class com.vaadin.server.VaadinServlet
javax.servlet.ServletException
public void setClassLoader(java.lang.ClassLoader classLoader)
protected void servletInitialized() throws javax.servlet.ServletException
servletInitialized
in class com.vaadin.server.VaadinServlet
javax.servlet.ServletException
protected com.vaadin.server.DeploymentConfiguration createDeploymentConfiguration(java.util.Properties initParameters)
createDeploymentConfiguration
in class com.vaadin.server.VaadinServlet
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
service
in class com.vaadin.server.VaadinServlet
java.io.IOException
protected java.lang.String getTargetAction(java.lang.String[] uriParts)
protected void redirectWithBlankHtmlPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
protected void redirectToApp(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String contextName, java.lang.String[] uriParts, java.lang.String action) throws java.io.IOException
java.io.IOException
protected void serviceAppRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
protected boolean hasUidlPathPrefix(javax.servlet.http.HttpServletRequest request)
protected java.lang.String getPackageName()
protected boolean isAllowedVAADINResourceUrl(javax.servlet.http.HttpServletRequest request, java.net.URL resourceUrl)
isAllowedVAADINResourceUrl
in class com.vaadin.server.VaadinServlet
public void handleServerError(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.Throwable exception) throws java.io.IOException
java.io.IOException
protected java.lang.String prepareErrorHtml(javax.servlet.http.HttpServletRequest req, java.lang.Throwable exception)
protected java.util.Locale resolveLocale(javax.servlet.http.HttpServletRequest req, Messages messages, GlobalConfig globalConfig)
protected java.lang.String getLocaleFromCookie(javax.servlet.http.HttpServletRequest req)
@Nullable protected java.lang.String getLocalizedTemplateContent(Resources resources, java.lang.String defaultTemplateName, java.lang.String locale)
protected groovy.text.Template getTemplate(groovy.text.SimpleTemplateEngine templateEngine, java.lang.String templateString)
protected java.lang.String getStaticFilePath(javax.servlet.http.HttpServletRequest request)
getStaticFilePath
in class com.vaadin.server.VaadinServlet