Java Doc for WebApplication.java in  » J2EE » wicket » org » apache » wicket » protocol » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » wicket » org.apache.wicket.protocol.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.wicket.Application
      org.apache.wicket.protocol.http.WebApplication

All known Subclasses:   org.apache.wicket.authentication.AuthenticatedWebApplication,  org.apache.wicket.examples.repeater.RepeaterApplication,  org.apache.wicket.resource.DummyApplication,  org.apache.wicket.threadtest.apps.app2.TestApp2,  org.apache.wicket.threadtest.apps.app1.TestApp1,  org.apache.wicket.examples.authorization.RolesApplication,  org.apache.wicket.examples.breadcrumb.BreadCrumbApplication,  org.apache.wicket.markup.html.image.PubApplication,  org.apache.wicket.properties.MyTesterApplication,  org.apache.wicket.examples.WicketExampleApplication,  org.apache.wicket.spring.SpringWebApplication,  org.apache.wicket.examples.staticpages.Application,  org.apache.wicket.quickstart.QuickStartApplication,  org.apache.wicket.properties.MyApplication,  org.apache.wicket.examples.wizard.WizardApplication,  org.apache.wicket.examples.velocity.VelocityTemplateApplication,
WebApplication
abstract public class WebApplication extends Application (Code)
A web application is a subclass of Application which associates with an instance of WicketServlet to serve pages over the HTTP protocol. This class is intended to be subclassed by framework clients to define a web application.

Application settings are given defaults by the WebApplication() constructor and internalInit method, such as error page classes appropriate for HTML. WebApplication subclasses can override these values and/or modify other application settings by overriding the init() method and then by calling getXXXSettings() to retrieve an interface to a mutable Settings object. Do not do this in the constructor itself because the defaults will then override your settings.

If you want to use a filter specific configuration, e.g. using init parameters from the javax.servlet.FilterConfig object, you should override the init() method. For example:

 public void init() {
 String webXMLParameter = getInitParameter("myWebXMLParameter");
 URL schedulersConfig = getServletContext().getResource("/WEB-INF/schedulers.xml");
 ...
 

See Also:   WicketFilter
See Also:   org.apache.wicket.settings.IApplicationSettings
See Also:   org.apache.wicket.settings.IDebugSettings
See Also:   org.apache.wicket.settings.IExceptionSettings
See Also:   org.apache.wicket.settings.IMarkupSettings
See Also:   org.apache.wicket.settings.IPageSettings
See Also:   org.apache.wicket.settings.IRequestCycleSettings
See Also:   org.apache.wicket.settings.IResourceSettings
See Also:   org.apache.wicket.settings.ISecuritySettings
See Also:   org.apache.wicket.settings.ISessionSettings
See Also:   javax.servlet.Filter
See Also:   javax.servlet.FilterConfig
See Also:   javax.servlet.ServletContext
author:
   Jonathan Locke
author:
   Chris Turner
author:
   Johan Compagner
author:
   Eelco Hillenius
author:
   Juergen Donnerstag



Constructor Summary
public  WebApplication()
     Constructor.

Method Summary
final  voidaddBufferedResponse(String sessionId, String bufferId, BufferedHttpServletResponse renderedResponse)
     Add a buffered response to the redirect buffer.
final public  StringgetApplicationKey()
    
public  StringgetConfigurationType()
    
final protected  ObjectgetDefaultRequestCycleFactory()
    
final public  StringgetInitParameter(String key)
     Gets an init parameter from the filter's context.
final public  IRequestCycleProcessorgetRequestCycleProcessor()
     Gets the default request cycle processor (with lazy initialization).
protected  IResourceFindergetResourceFinder()
    
final public  ServletContextgetServletContext()
     Gets the servlet context for this application.
final public  StringgetSessionAttributePrefix(WebRequest request)
     Gets the prefix for storing variables in the actual session (typically HttpSession for this application instance.
final public  WicketFiltergetWicketFilter()
    
protected  voidinit()
     Initialize; if you need the wicket servlet for initialization, e.g. because you want to read an initParameter from web.xml or you want to read a resource from the servlet's context path, you can override this method and provide custom initialization.
protected  voidinternalDestroy()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
protected  voidinternalInit()
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
public  voidlogEventTarget(IRequestTarget target)
    
public  voidlogResponseTarget(IRequestTarget target)
    
final  voidlogStarted()
     Log that this application is started.
final public  voidmount(IRequestTargetUrlCodingStrategy encoder)
     Mounts an encoder at the given path.
final public  voidmount(String path, PackageName packageName)
     Mounts all bookmarkable pages at the given path.
final public  voidmountBookmarkablePage(String path, Class bookmarkablePageClass)
     Mounts a bookmarkable page class to the given path.
final public  voidmountBookmarkablePage(String path, String pageMapName, Class bookmarkablePageClass)
     Mounts a bookmarkable page class to the given pagemap and path.
final public  voidmountSharedResource(String path, String resourceKey)
     Mounts a shared resource class to the given path.
public  RequestCyclenewRequestCycle(Request request, Response response)
    
protected  IRequestCycleProcessornewRequestCycleProcessor()
     Gets a new request cycle processor for web requests.
final public  SessionnewSession()
     Create new Wicket Session object.
final public  SessionnewSession(Request request)
     Create new Wicket Session object.
public  SessionnewSession(Request request, Response response)
    
protected  ISessionStorenewSessionStore()
    
protected  WebRequestnewWebRequest(HttpServletRequest servletRequest)
     Create a new WebRequest.
protected  WebResponsenewWebResponse(HttpServletResponse servletResponse)
     Create a WebResponse.
protected  voidoutputDevelopmentModeWarning()
     This method prints a warning to stderr that we are starting in development mode.
final  BufferedHttpServletResponsepopBufferedResponse(String sessionId, String bufferId)
     Returns the redirect map where the buffered render pages are stored in and removes it immediately.
public  voidsessionDestroyed(String sessionId)
    
final protected  voidsetApplicationKey(String applicationKey)
    
final public  voidsetWicketFilter(WicketFilter wicketFilter)
     THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
final public  voidunmount(String path)
     Unmounts whatever encoder is mounted at a given path.


Constructor Detail
WebApplication
public WebApplication()(Code)
Constructor. Use WebApplication.init() for any configuration of your application instead of overriding the constructor.




Method Detail
addBufferedResponse
final void addBufferedResponse(String sessionId, String bufferId, BufferedHttpServletResponse renderedResponse)(Code)
Add a buffered response to the redirect buffer.
Parameters:
  sessionId - the session id
Parameters:
  bufferId - the id that should be used for storing the buffer
Parameters:
  renderedResponse - the response to buffer



getApplicationKey
final public String getApplicationKey()(Code)

See Also:   org.apache.wicket.Application.getApplicationKey



getConfigurationType
public String getConfigurationType()(Code)

See Also:   org.apache.wicket.Application.getConfigurationType



getDefaultRequestCycleFactory
final protected Object getDefaultRequestCycleFactory()(Code)
nadaWebApplication.newRequestCycle(Request,Response)



getInitParameter
final public String getInitParameter(String key)(Code)
Gets an init parameter from the filter's context.
Parameters:
  key - the key to search for the value of the filter init parameter



getRequestCycleProcessor
final public IRequestCycleProcessor getRequestCycleProcessor()(Code)
Gets the default request cycle processor (with lazy initialization). This is the IRequestCycleProcessor that will be used by RequestCycle s when custom implementations of the request cycle do not provide their own customized versions. the default request cycle processor



getResourceFinder
protected IResourceFinder getResourceFinder()(Code)



getServletContext
final public ServletContext getServletContext()(Code)
Gets the servlet context for this application. Use this to get references to absolute paths, global web.xml parameters (), etc. The servlet context for this application



getSessionAttributePrefix
final public String getSessionAttributePrefix(WebRequest request)(Code)
Gets the prefix for storing variables in the actual session (typically HttpSession for this application instance.
Parameters:
  request - the request the prefix for storing variables in the actual session



getWicketFilter
final public WicketFilter getWicketFilter()(Code)
The Wicket filter for this application



init
protected void init()(Code)
Initialize; if you need the wicket servlet for initialization, e.g. because you want to read an initParameter from web.xml or you want to read a resource from the servlet's context path, you can override this method and provide custom initialization. This method is called right after this application class is constructed, and the wicket servlet is set. Use this method for any application setup instead of the constructor.



internalDestroy
protected void internalDestroy()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.



internalInit
protected void internalInit()(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. Internal intialization. First determine the deployment mode. First check the system property -Dwicket.configuration. If it does not exist check the servlet init parameter ( <init-param><param-name>configuration</param-name>). If not found check the servlet context init paramert <context-param><param-name6gt;configuration</param-name>). If the parameter is "development" (which is default), settings appropriate for development are set. If it's "deployment" , deployment settings are used. If development is specified and a "sourceFolder" init parameter is also set, then resources in that folder will be polled for changes.



logEventTarget
public void logEventTarget(IRequestTarget target)(Code)

See Also:   org.apache.wicket.Application.logEventTarget(org.apache.wicket.IRequestTarget)



logResponseTarget
public void logResponseTarget(IRequestTarget target)(Code)

See Also:   org.apache.wicket.Application.logResponseTarget(org.apache.wicket.IRequestTarget)



logStarted
final void logStarted()(Code)
Log that this application is started.



mount
final public void mount(IRequestTargetUrlCodingStrategy encoder)(Code)
Mounts an encoder at the given path.
Parameters:
  encoder - the encoder that will be used for this mount



mount
final public void mount(String path, PackageName packageName)(Code)
Mounts all bookmarkable pages at the given path.
Parameters:
  path - the path to mount the bookmarkable page class on
Parameters:
  packageName - the name of the package for which all bookmarkable pages orsharedresources should be mounted



mountBookmarkablePage
final public void mountBookmarkablePage(String path, Class bookmarkablePageClass)(Code)
Mounts a bookmarkable page class to the given path.
Parameters:
  path - the path to mount the bookmarkable page class on
Parameters:
  bookmarkablePageClass - the bookmarkable page class to mount



mountBookmarkablePage
final public void mountBookmarkablePage(String path, String pageMapName, Class bookmarkablePageClass)(Code)
Mounts a bookmarkable page class to the given pagemap and path.
Parameters:
  path - the path to mount the bookmarkable page class on
Parameters:
  pageMapName - name of the pagemap this mount is for
Parameters:
  bookmarkablePageClass - the bookmarkable page class to mount



mountSharedResource
final public void mountSharedResource(String path, String resourceKey)(Code)
Mounts a shared resource class to the given path.
Parameters:
  path - the path to mount the resource class on
Parameters:
  resourceKey - the shared key of the resource being mounted



newRequestCycle
public RequestCycle newRequestCycle(Request request, Response response)(Code)

See Also:   org.apache.wicket.Application.newRequestCycle(org.apache.wicket.Requestorg.apache.wicket.Response)



newRequestCycleProcessor
protected IRequestCycleProcessor newRequestCycleProcessor()(Code)
Gets a new request cycle processor for web requests. May be replaced by subclasses which whishes to uses there own implementation of IRequestCycleProcessor. NOTE this can't be moved to application as portlets use two different request cycle processors, and hence have two different methods for them, depending on the kind of request. IRequestCycleProcessor



newSession
final public Session newSession()(Code)
Create new Wicket Session object. Note, this method is not called if you registered your own ISessionFactory with the Application. The created sessionWebApplication.newSession(RequestResponse)



newSession
final public Session newSession(Request request)(Code)
Create new Wicket Session object. Note, this method is not called if you registered your own ISessionFactory with the Application.
Parameters:
  request - The created sessionWebApplication.newSession(RequestResponse)



newSession
public Session newSession(Request request, Response response)(Code)

See Also:   org.apache.wicket.Application.newSession(org.apache.wicket.Requestorg.apache.wicket.Response)



newSessionStore
protected ISessionStore newSessionStore()(Code)

See Also:   org.apache.wicket.Application.newSessionStore



newWebRequest
protected WebRequest newWebRequest(HttpServletRequest servletRequest)(Code)
Create a new WebRequest. Subclasses of WebRequest could e.g. decode and obfuscated URL which has been encoded by an appropriate WebResponse.
Parameters:
  servletRequest - a WebRequest object



newWebResponse
protected WebResponse newWebResponse(HttpServletResponse servletResponse)(Code)
Create a WebResponse. Subclasses of WebRequest could e.g. encode wicket's default URL and hide the details from the user. A appropriate WebRequest must be implemented and configured to decode the encoded URL.
Parameters:
  servletResponse - a WebResponse object



outputDevelopmentModeWarning
protected void outputDevelopmentModeWarning()(Code)
This method prints a warning to stderr that we are starting in development mode.

If you really need to test Wicket in development mode on a staging server somewhere and are annoying the sysadmin for it with stderr messages, you can override this to make it do something else.




popBufferedResponse
final BufferedHttpServletResponse popBufferedResponse(String sessionId, String bufferId)(Code)
Returns the redirect map where the buffered render pages are stored in and removes it immediately.
Parameters:
  sessionId - the session id
Parameters:
  bufferId - the id of the buffer as passed in as a request parameter the buffered response or null if not found (when this request ison a different box than the original request came in



sessionDestroyed
public void sessionDestroyed(String sessionId)(Code)

Parameters:
  sessionId - The session id that was destroyed



setApplicationKey
final protected void setApplicationKey(String applicationKey)(Code)



setWicketFilter
final public void setWicketFilter(WicketFilter wicketFilter)(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.
Parameters:
  wicketFilter - The wicket filter instance for this application



unmount
final public void unmount(String path)(Code)
Unmounts whatever encoder is mounted at a given path.
Parameters:
  path - the path of the encoder to unmount



Fields inherited from org.apache.wicket.Application
final public static String CONFIGURATION(Code)(Java Doc)
final public static String CONTEXTPATH(Code)(Java Doc)
final public static String DEPLOYMENT(Code)(Java Doc)
final public static String DEVELOPMENT(Code)(Java Doc)

Methods inherited from org.apache.wicket.Application
final public void addComponentInstantiationListener(IComponentInstantiationListener listener)(Code)(Java Doc)
final public void addComponentOnAfterRenderListener(IComponentOnAfterRenderListener listener)(Code)(Java Doc)
final public void addComponentOnBeforeRenderListener(IComponentOnBeforeRenderListener listener)(Code)(Java Doc)
final public void addRenderHeadListener(IHeaderContributor listener)(Code)(Java Doc)
final public void configure()(Code)(Java Doc)
final protected void destroy()(Code)(Java Doc)
public static boolean exists()(Code)(Java Doc)
public static Application get()(Code)(Java Doc)
public static Application get(String applicationKey)(Code)(Java Doc)
abstract public String getApplicationKey()(Code)(Java Doc)
public static Set getApplicationKeys()(Code)(Java Doc)
public IApplicationSettings getApplicationSettings()(Code)(Java Doc)
abstract public String getConfigurationType()(Code)(Java Doc)
final public IConverterLocator getConverterLocator()(Code)(Java Doc)
public IDebugSettings getDebugSettings()(Code)(Java Doc)
public IExceptionSettings getExceptionSettings()(Code)(Java Doc)
public IFrameworkSettings getFrameworkSettings()(Code)(Java Doc)
abstract public Class getHomePage()(Code)(Java Doc)
final public IMarkupCache getMarkupCache()(Code)(Java Doc)
public IMarkupSettings getMarkupSettings()(Code)(Java Doc)
final public Serializable getMetaData(MetaDataKey key)(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
public IPageSettings getPageSettings()(Code)(Java Doc)
final protected Object getRequestCycleFactory()(Code)(Java Doc)
public IRequestCycleSettings getRequestCycleSettings()(Code)(Java Doc)
final public IRequestLogger getRequestLogger()(Code)(Java Doc)
public IRequestLoggerSettings getRequestLoggerSettings()(Code)(Java Doc)
public IResourceSettings getResourceSettings()(Code)(Java Doc)
public ISecuritySettings getSecuritySettings()(Code)(Java Doc)
final protected Object getSessionFactory()(Code)(Java Doc)
public ISessionSettings getSessionSettings()(Code)(Java Doc)
final public ISessionStore getSessionStore()(Code)(Java Doc)
final public SharedResources getSharedResources()(Code)(Java Doc)
protected void init()(Code)(Java Doc)
final public void initializeComponents()(Code)(Java Doc)
protected void internalDestroy()(Code)(Java Doc)
protected void internalInit()(Code)(Java Doc)
public void logEventTarget(IRequestTarget target)(Code)(Java Doc)
public void logResponseTarget(IRequestTarget requestTarget)(Code)(Java Doc)
protected IConverterLocator newConverterLocator()(Code)(Java Doc)
abstract public RequestCycle newRequestCycle(Request request, Response response)(Code)(Java Doc)
final public RequestCycle newRequestCycle(Application application, Request request, Response response)(Code)(Java Doc)
protected IRequestLogger newRequestLogger()(Code)(Java Doc)
abstract public Session newSession(Request request, Response response)(Code)(Java Doc)
abstract protected ISessionStore newSessionStore()(Code)(Java Doc)
public void notifyRenderHeadListener(IHeaderResponse response)(Code)(Java Doc)
protected void onDestroy()(Code)(Java Doc)
final public void removeComponentInstantiationListener(IComponentInstantiationListener listener)(Code)(Java Doc)
final public void removeComponentOnAfterRenderListener(IComponentOnAfterRenderListener listener)(Code)(Java Doc)
final public void removeComponentOnBeforeRenderListener(IComponentOnBeforeRenderListener listener)(Code)(Java Doc)
public void removeRenderHeadListener(IHeaderContributor listener)(Code)(Java Doc)
public static void set(Application application)(Code)(Java Doc)
final public synchronized void setMetaData(MetaDataKey key, Serializable object)(Code)(Java Doc)
public static void unset()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.