com.vaadin.addon.touchkit.server
Class TouchKitServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.vaadin.server.VaadinServlet
              extended by com.vaadin.addon.touchkit.server.TouchKitServlet
All Implemented Interfaces:
com.vaadin.server.Constants, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TouchKitServlet
extends com.vaadin.server.VaadinServlet

This servlet should be used by all TouchKit applications. It automatically creates an instance of TouchKitSettings bound to the current VaadinService in the servletInitialized() method. The servletInitialized() method can be overridden to configure defaults suitable for this web application.

If a TouchKit application cannot use this Servlet as its super class, developers should manually create and bind a TouchKitSettings instance.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.server.VaadinServlet
com.vaadin.server.VaadinServlet.RequestType
 
Field Summary
 
Fields inherited from interface com.vaadin.server.Constants
ATMOSPHERE_MISSING_ERROR, 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, 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_PROPERTY_TOSTRING, SERVLET_PARAMETER_PRODUCTION_MODE, SERVLET_PARAMETER_PUSH_MODE, SERVLET_PARAMETER_RESOURCE_CACHE_TIME, SERVLET_PARAMETER_UI_PROVIDER, THEME_DIR_PATH, URL_PARAMETER_THEME, WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC, WARNING_LEGACY_PROPERTY_TOSTRING, WARNING_PUSH_MODE_NOT_RECOGNIZED, WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC, WARNING_UNKNOWN_LEGACY_PROPERTY_TOSTRING_VALUE, WARNING_XSRF_PROTECTION_DISABLED, WIDGETSET_DIR_PATH, WIDGETSET_MISMATCH_INFO
 
Constructor Summary
TouchKitServlet()
           
 
Method Summary
 TouchKitSettings getTouchKitSettings()
           
protected  void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void servletInitialized()
           
protected  void writeStaticResourceResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, URL resourceUrl)
           
 
Methods inherited from class com.vaadin.server.VaadinServlet
createDeploymentConfiguration, createServletService, createVaadinRequest, criticalNotification, destroy, getApplicationUrl, getCacheTime, getCurrent, getDefaultTheme, getLastPathParameter, getRequestType, getResourcePath, getService, handleContextRootWithoutSlash, init, isAllowedVAADINResourceUrl, isStaticResourceRequest, safeEscapeForHtml, stripSpecialChars
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TouchKitServlet

public TouchKitServlet()
Method Detail

servletInitialized

protected void servletInitialized()
                           throws javax.servlet.ServletException
Overrides:
servletInitialized in class com.vaadin.server.VaadinServlet
Throws:
javax.servlet.ServletException

getTouchKitSettings

public TouchKitSettings getTouchKitSettings()
Returns:
The TouchKitSettings instance bound to the VaadinService related to this servlet

service

protected void service(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       IOException
Overrides:
service in class com.vaadin.server.VaadinServlet
Throws:
javax.servlet.ServletException
IOException

writeStaticResourceResponse

protected void writeStaticResourceResponse(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           URL resourceUrl)
                                    throws IOException
Overrides:
writeStaticResourceResponse in class com.vaadin.server.VaadinServlet
Throws:
IOException


Copyright © 2014 Vaadin Ltd. All rights reserved.