Home | Trees | Indices | Help |
|
---|
|
WebKit.HTTPServlet.HTTPServlet --+ | paste_wsgi_servlet.PasteWsgiServlet --+ | object --+ | | | constants.Constants --+ | AbstractApplicationServlet
Abstract implementation of the ApplicationServlet which handles all communication between the client and the server.
It is possible to extend this class to provide own functionality but in most cases this is unnecessary.
Version: 1.1.2
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
|
Gets an application property value.
|
Gets an system property value.
|
Gets an application or system property value.
|
Returns true if the servlet is running in production mode. Production mode disables all debug facilities.
|
Returns the amount of milliseconds the browser should cache a file. Default is 1 hour (3600 ms).
|
Receives standard HTTP requests from the public service method and dispatches them.
|
Check that cookie support is enabled in the browser. Only checks UIDL requests.
|
Send a notification to client's application. Used to notify client of critical errors, session expiration and more. Server has no knowledge of what application client refers to.
|
Writes the response in
|
Returns the application instance to be used for the request. If an existing instance is not found a new one is created or null is returned to indicate that the application is not available. |
Check if the request should create an application if an existing application is not found.
|
Handles the requested URI. An application can add handlers to do special processing, when a certain URI is requested. The handlers are invoked before any windows URIs are processed and if a DownloadStream is returned it is sent to the client.
See Also:
|
Creates a new application and registers it into WebApplicationContext (aka session). This is not meant to be overridden. Override getNewApplication to create the application instance in a custom way.
|
A helper method to strip away characters that might somehow be used for XSS attacks. Leaves at least alphanumeric characters intact. Also removes eg. ( and ), so values should be safe in javascript too. |
Returns the default theme. Must never return |
Calls URI handlers for the request. If an URI handler returns a DownloadStream the stream is passed to the client for downloading.
|
Creates a new application for the given request.
|
Starts the application if it is not already running.
|
Check if this is a request for a static resource and, if it is, serve the resource to the client.
|
Serve resources from VAADIN directory.
|
Check whether a URL obtained from a classloader refers to a valid static resource in the directory VAADIN. Warning: Overriding of this method is not recommended, but is possible to support non-default classloaders or servers that may produce URLs different from the normal ones. The method prototype may change in the future. Care should be taken not to expose class files or other resources outside the VAADIN directory if the method is overridden. |
Checks if the browser has an up to date cached version of requested resource. Currently the check is performed using the "If-Modified-Since" header. Could be expanded if needed.
|
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.
|
The default method to fetch static files location (URL). This method
does not check for request attribute
|
Write a redirect response to the main page of the application.
|
This method writes the html host page (aka kickstart page) that starts the actual Muntjac application. If one needs to override parts of the host page, it is suggested that one overrides on of several submethods which are called by this method:
|
Returns the application class identifier for use in the application CSS class name in the root DIV. The application CSS class name is of form "v-app-"+getApplicationCSSClassName(). This method should normally not be overridden.
|
Get the URI for the application theme. A portal-wide default theme is fetched from the portal shared resource directory (if any), other themes from the portlet. |
Method to write the div element into which that actual Muntjac application is rendered. Override this method if you want to add some custom html around around the div element into which the actual Muntjac application will be rendered.
|
Method to write the script part of the page which loads needed Muntjac scripts and themes. Override this method if you want to add some custom html around scripts.
|
|
Method to open the body tag of the html kickstart page. This method is responsible for closing the head tag and opening the body tag. Override this method if you want to add some custom html to the page.
|
Method to write the contents of head element in html kickstart page. Override this method if you want to add some custom html to the header of the page.
|
Method to write the beginning of the html page. This method is responsible for writing appropriate doc type declarations and to open html and head tags. Override this method if you want to add some custom html to the very beginning of the page.
|
Method to set http request headers for the Muntjac kickstart page. Override this method if you need to customize http headers of the page. |
Gets the current application URL from request.
|
Gets the existing application for given request. Looks for application instance for given request based on the requested URL.
|
Ends the application.
|
Gets the existing application or create a new one. Get a window within an application based on the requested URI.
|
Returns the path info; note that this _can_ be different than request.getPathInfo(). Examples where this might be useful:
|
Gets relative location of a theme resource.
|
Gets the application context from an HttpSession. If no context is currently stored in a session a new context is created and stored in the session.
|
Override this method if you need to use a specialized communication mananger implementation. Deprecated:
Instead of overriding this method, override WebApplicationContext implementation via getApplicationContext method and in that customized
implementation return your CommunicationManager in |
Escapes characters to html entities. An exception is made for some "safe characters" to keep the text somewhat readable.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jul 6 13:40:53 2013 | http://epydoc.sourceforge.net |