public abstract class WebApp extends WebContext
String, XML, URL,
 or WebApp become accessible using HTTP GET requests.
 For deployment and configuration, see WebSite.URLPattern, 
PriorityCACHE_PRIORITY, context, HANDLERS, JWIG_DEFUNCT_SESSION, log, MAX_PRIORITY, PRE_CACHE| Constructor and Description | 
|---|
| WebApp()Constructs a new web application object. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | destroy()Called on each web app when the website is closed. | 
| static WebApp | get()Returns the  WebAppobject for the current thread. | 
| protected XML | getPageName(String annotatedName)Returns the name of the web method with the given annotated name. | 
| Map<String,Object> | getProperties()Returns the combined web app and web site configuration properties. | 
| <T> T | getProperty(String name)Returns the web app configuration property value for the given name. | 
| <T> T | getProperty(String name,
           T defaultValue)Returns the configuration property value for the given name, with a default value. | 
| DirectObjectSecurityManager | getSecurityManager()Returns the security manager for this web app. | 
| protected <T> void | setProperty(String name,
           T value)Sets a web app configuration property. | 
addCookie, addResponseInvalidator, augment, cache, getCacheAugmentedString, getCookies, getRequestURL, getResponse, getServletContext, getServletRequest, getServletResponse, getUser, getWebAppParam, getWebAppParam, getWebAppURL, getWebSite, getWebSiteURL, getWebSiteURL, handlers, handleUpdatedObjects, isSecure, jwigJS, main, makeURL, makeURL, makeURL, makeURL, makeURL, makeURL, makeURL, next, punish, sendEmail, sendEmails, sendEmailsAsynchronously, sendResponse, touchSessions, transportSessionHandlers, updatepublic void destroy()
public static WebApp get()
WebApp object for the current thread.
 This method makes it easy get access to the current WebApp
 object from outside the WebApp subclass.protected XML getPageName(String annotatedName)
PageName
 annotation or the name of the web method itself if such an annotation is missing.
 Web applications may use the method to for instance translate the names of web application
 pages.annotatedName - The annotated name of the pagePageNamepublic final Map<String,Object> getProperties()
public final <T> T getProperty(String name)
WebSite.getProperty(String)public final <T> T getProperty(String name, T defaultValue)
ClassCastException - if the actual type cannot be converted to the type of the default valuepublic DirectObjectSecurityManager getSecurityManager()
protected final <T> void setProperty(String name, T value)
WebSite.setProperty(String, Object)Copyright © 2008-2012 Anders Møller & Mathias Schwarz.