fi.paatti.mobile.paattiapplication
Class PaattiApplicationServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.vaadin.terminal.gwt.server.AbstractApplicationServlet
              extended by com.vaadin.terminal.gwt.server.ApplicationServlet
                  extended by fi.paatti.mobile.paattiapplication.PaattiApplicationServlet
All Implemented Interfaces:
com.vaadin.terminal.gwt.server.Constants, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PaattiApplicationServlet
extends com.vaadin.terminal.gwt.server.ApplicationServlet

Extended application servlet. Is only used for injecting meta text in the page header. This makes the mobile devices show the application correctly zoomed.

Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi
See Also:
Serialized Form
 

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.terminal.gwt.server.AbstractApplicationServlet
com.vaadin.terminal.gwt.server.AbstractApplicationServlet.ParameterHandlerErrorImpl, com.vaadin.terminal.gwt.server.AbstractApplicationServlet.RequestError, com.vaadin.terminal.gwt.server.AbstractApplicationServlet.RequestType, com.vaadin.terminal.gwt.server.AbstractApplicationServlet.URIHandlerErrorImpl
 
Field Summary
 
Fields inherited from class com.vaadin.terminal.gwt.server.AbstractApplicationServlet
REQUEST_APPSTYLE, REQUEST_DEFAULT_THEME, REQUEST_FRAGMENT, REQUEST_SHARED_WIDGETSET, REQUEST_VAADIN_STATIC_FILE_PATH, REQUEST_WIDGETSET, VERSION, VERSION_BUILD, VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION
 
Fields inherited from interface com.vaadin.terminal.gwt.server.Constants
AJAX_UIDL_URI, DEFAULT_BUFFER_SIZE, DEFAULT_THEME_CACHETIME, DEFAULT_THEME_NAME, DEFAULT_WIDGETSET, ERROR_NO_WINDOW_FOUND, 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, SERVLET_PARAMETER_DEBUG, SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION, SERVLET_PARAMETER_PRODUCTION_MODE, SERVLET_PARAMETER_RESOURCE_CACHE_TIME, THEME_DIRECTORY_PATH, URL_PARAMETER_CLOSE_APPLICATION, URL_PARAMETER_REPAINT_ALL, URL_PARAMETER_RESTART_APPLICATION, URL_PARAMETER_THEME, WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC, WARNING_XSRF_PROTECTION_DISABLED, WIDGETSET_DIRECTORY_PATH, WIDGETSET_MISMATCH_INFO
 
Constructor Summary
PaattiApplicationServlet()
           
 
Method Summary
protected  void writeAjaxPageHtmlHeadStart(BufferedWriter page, javax.servlet.http.HttpServletRequest request)
          Add a meta-tag to the page header to make the application more usable on some mobile devices.
 
Methods inherited from class com.vaadin.terminal.gwt.server.ApplicationServlet
getApplicationClass, getNewApplication, init
 
Methods inherited from class com.vaadin.terminal.gwt.server.AbstractApplicationServlet
createCommunicationManager, createPreventCachingQueryString, criticalNotification, getApplicationContext, getApplicationCSSClassName, getApplicationProperty, getApplicationUrl, getApplicationWindow, getClassLoader, getDefaultTheme, getExistingApplication, getNoScriptMessage, getRequestPathInfo, getRequestType, getResourceCacheTime, getResourceLocation, getResourcePath, getStaticFilesLocation, getSystemMessages, getSystemProperty, handleURI, isAllowedVAADINResourceUrl, isProductionMode, isStandalone, safeEscapeForHtml, service, setAjaxPageHeaders, stripSpecialChars, writeAjaxPage, writeAjaxPageHtmlBodyStart, writeAjaxPageHtmlHeader, writeAjaxPageHtmlMainDiv, writeAjaxPageHtmlVaadinScripts
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

PaattiApplicationServlet

public PaattiApplicationServlet()
Method Detail

writeAjaxPageHtmlHeadStart

protected void writeAjaxPageHtmlHeadStart(BufferedWriter page,
                                          javax.servlet.http.HttpServletRequest request)
                                   throws IOException
Add a meta-tag to the page header to make the application more usable on some mobile devices.

Overrides:
writeAjaxPageHtmlHeadStart in class com.vaadin.terminal.gwt.server.AbstractApplicationServlet
Parameters:
page -
request -
Throws:
IOException


Copyright © 2012. All Rights Reserved.