Package muntjac :: Package terminal :: Package gwt :: Package server :: Module application_runner_servlet :: Class ApplicationRunnerServlet
[hide private]
[frames] | no frames]

Class ApplicationRunnerServlet

source code

                 WebKit.HTTPServlet.HTTPServlet --+        
                                                  |        
                paste_wsgi_servlet.PasteWsgiServlet --+    
                                                      |    
                                         object --+   |    
                                                  |   |    
                                constants.Constants --+    
                                                      |    
abstract_application_servlet.AbstractApplicationServlet --+
                                                          |
                                                         ApplicationRunnerServlet

Nested Classes [hide private]

Inherited from paste_wsgi_servlet.PasteWsgiServlet: EndResponse

Instance Methods [hide private]
 
awake(self, transaction) source code
 
respond(self, transaction) source code
 
getApplicationUrl(self, request)
Gets the current application URL from request.
source code
 
getNewApplication(self, request)
Creates a new application for the given request.
source code
 
getApplicationRunnerApplicationClassName(self, request) source code
 
getApplicationClass(self) source code
 
getRequestPathInfo(self, request)
Returns the path info; note that this _can_ be different than request.getPathInfo().
source code
 
getStaticFilesLocation(self, request)
Return the URL from where static files, e.g.
source code

Inherited from abstract_application_servlet.AbstractApplicationServlet: __init__, browserHasNewestVersion, checkCrossSiteProtection, checkProductionMode, checkResourceCacheTime, checkWidgetsetVersion, closeApplication, createApplication, createCommunicationManager, criticalNotification, endApplication, ensureCookiesEnabled, findApplicationInstance, getApplicationCSSClassName, getApplicationContext, getApplicationOrSystemProperty, getApplicationProperty, getApplicationWindow, getExistingApplication, getNoScriptMessage, getRequestType, getResourceCacheTime, getResourceLocation, getSystemMessages, getSystemProperty, getThemeForWindow, getThemeUri, getWebApplicationsStaticFileLocation, handleDownload, handleServiceException, handleServiceSecurityException, handleServiceSessionExpired, handleURI, init, isAllowedVAADINResourceUrl, isApplicationRequest, isFileUploadRequest, isOnUnloadRequest, isProductionMode, isRepaintAll, isStandalone, isStaticResourceRequest, isUIDLRequest, redirectToApplication, requestCanCreateApplication, serveStaticResources, serveStaticResourcesInVAADIN, service, setAjaxPageHeaders, startApplication, updateBrowserProperties, writeAjaxPage, writeAjaxPageHtmlBodyStart, writeAjaxPageHtmlHeadStart, writeAjaxPageHtmlHeader, writeAjaxPageHtmlMainDiv, writeAjaxPageHtmlMuntjacScripts, writeResponse

Inherited from paste_wsgi_servlet.PasteWsgiServlet: getContentLength, getContentType, getContextPath, getHeader, getIfModifiedSince, getInputStream, getLocale, getMaxInactiveInterval, getOutputStream, getParameter, getParameters, getPathInfo, getRequestUri, getResource, getResourceAsStream, getResourcePath, getServerName, getServerPort, getServletPath, getSession, getSessionAttribute, getSessionId, getUrlPath, getUserAgent, invalidateSession, isSecure, isSessionNew, originalContextPath, redirect, setHeader, setParameter, setSessionAttribute, setStatus, write

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
getApplicationRunnerURIs(cls, request)
Parses application runner URIs.
source code

Inherited from abstract_application_servlet.AbstractApplicationServlet: getDefaultTheme, isSafe, removeHeadingOrTrailing, safeEscapeForHtml, stripSpecialChars

Class Variables [hide private]

Inherited from abstract_application_servlet.AbstractApplicationServlet: REQUEST_APPSTYLE, REQUEST_DEFAULT_THEME, REQUEST_FRAGMENT, REQUEST_SHARED_WIDGETSET, REQUEST_VAADIN_STATIC_FILE_PATH, REQUEST_WIDGETSET, UPLOAD_URL_PREFIX, VERSION, VERSION_BUILD, VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, digits

Inherited from constants.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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

awake(self, transaction)

source code 
Overrides: paste_wsgi_servlet.PasteWsgiServlet.awake

respond(self, transaction)

source code 
Overrides: paste_wsgi_servlet.PasteWsgiServlet.respond

getApplicationUrl(self, request)

source code 

Gets the current application URL from request.

Parameters:
  • request - the HTTP request.
Raises:
  • MalformedURLException - if the application is denied access to the persistent data store represented by the given URL.
Overrides: abstract_application_servlet.AbstractApplicationServlet.getApplicationUrl
(inherited documentation)

getNewApplication(self, request)

source code 

Creates a new application for the given request.

Parameters:
  • request - the HTTP request.
Returns:
A new Application instance.
Raises:
Overrides: abstract_application_servlet.AbstractApplicationServlet.getNewApplication
(inherited documentation)

getApplicationRunnerURIs(cls, request)
Class Method

source code 

Parses application runner URIs.

If request URL is e.g. http://localhost:8080/muntjac/run/muntjac.demo.calc.Calc then

  • context=muntjac
  • Runner servlet=run
  • Muntjac application=muntjac.demo.calc.Calc
Returns:
string array containing widgetset URI, application URI and context, runner, application classname

getApplicationClass(self)

source code 
Overrides: abstract_application_servlet.AbstractApplicationServlet.getApplicationClass

getRequestPathInfo(self, request)

source code 

Returns the path info; note that this _can_ be different than request.getPathInfo(). Examples where this might be useful:

  • An application runner servlet that runs different Muntjac applications based on an identifier.
  • Providing a REST interface in the context root, while serving a Muntjac UI on a sub-URI using only one servlet (e.g. REST on http://example.com/foo, UI on http://example.com/foo/vaadin)
Overrides: abstract_application_servlet.AbstractApplicationServlet.getRequestPathInfo
(inherited documentation)

getStaticFilesLocation(self, request)

source code 

Return the URL from where static files, e.g. the widgetset and the theme, are served. In a standard configuration the VAADIN folder inside the returned folder is what is used for widgetsets and themes.

The returned folder is usually the same as the context path and independent of the application.

Returns:
The location of static resources (should contain the VAADIN directory). Never ends with a slash (/).
Overrides: abstract_application_servlet.AbstractApplicationServlet.getStaticFilesLocation
(inherited documentation)