Java Doc for WebApplication.java in  » J2EE » wicket » 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 » wicket.protocol.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

All known Subclasses:   wicket.authorization.strategies.role.example.RolesApplication,  wicket.examples.displaytag.DisplaytagApplication,  wicket.spring.SpringWebApplication,  wicket.examples.wizard.WizardApplication,  wicket.examples.breadcrumb.BreadCrumbApplication,  wicket.quickstart.QuickStartApplication,  wicket.examples.repeater.RepeaterApplication,  wicket.examples.WicketExampleApplication,  wicket.authentication.AuthenticatedWebApplication,  wicket.protocol.http.MockWebApplication,
WebApplication
abstract public class WebApplication extends Application implements ISessionFactory(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 servlet specific configuration, e.g. using init parameters from the javax.servlet.ServletConfig object, you should override the init() method. For example:

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

See Also:   WicketServlet
See Also:   wicket.settings.IApplicationSettings
See Also:   wicket.settings.IDebugSettings
See Also:   wicket.settings.IExceptionSettings
See Also:   wicket.settings.IMarkupSettings
See Also:   wicket.settings.IPageSettings
See Also:   wicket.settings.IRequestCycleSettings
See Also:   wicket.settings.IResourceSettings
See Also:   wicket.settings.ISecuritySettings
See Also:   wicket.settings.ISessionSettings
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()
    
protected  IRequestCycleFactorygetDefaultRequestCycleFactory()
     Create a request cycle factory which is used by default by WebSession.
final public  IRequestCycleProcessorgetRequestCycleProcessor()
     Gets the default request cycle processor (with lazy initialization).
final public  RequestLoggergetRequestLogger()
     Gets the RequestLogger .
final  WebSessiongetSession(WebRequest request)
     Gets a WebSession object from the HttpServletRequest, creating a new one if it doesn't already exist.
final public  StringgetSessionAttributePrefix(WebRequest request)
     Gets the prefix for storing variables in the actual session (typically HttpSession for this application instance.
protected  ISessionFactorygetSessionFactory()
    
final public  WicketServletgetWicketServlet()
    
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(String path, 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, PageMap pageMap, Class bookmarkablePageClass)
     Mounts a bookmarkable page class to the given pagemap and 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.
protected  IRequestCycleProcessornewRequestCycleProcessor()
    
public  SessionnewSession()
     Create new Wicket Session object.
protected  ISessionStorenewSessionStore()
    
protected  WebRequestnewWebRequest(HttpServletRequest servletRequest)
     Create a new WebRequest.
protected  WebResponsenewWebResponse(HttpServletResponse servletResponse)
     Create a WebResponse.
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  voidsetRequestLogger(RequestLogger logger)
     Sets the RequestLogger .
final public  voidsetSessionFactory(ISessionFactory sessionFactory)
    
final public  voidsetWicketServlet(WicketServlet wicketServlet)
     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:   wicket.Application.getApplicationKey



getDefaultRequestCycleFactory
protected IRequestCycleFactory getDefaultRequestCycleFactory()(Code)
Create a request cycle factory which is used by default by WebSession. You may provide your own default factory by subclassing WebApplication and overriding this method or your may subclass WebSession to create a session specific request cycle factory.
See Also:   WebSession.getRequestCycleFactory
See Also:   IRequestCycleFactory Request cycle factory



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



getRequestLogger
final public RequestLogger getRequestLogger()(Code)
Gets the RequestLogger . The RequestLogger



getSession
final WebSession getSession(WebRequest request)(Code)
Gets a WebSession object from the HttpServletRequest, creating a new one if it doesn't already exist.
Parameters:
  request - The http request object The session object



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



getSessionFactory
protected ISessionFactory getSessionFactory()(Code)

See Also:   wicket.Application.getSessionFactory



getWicketServlet
final public WicketServlet getWicketServlet()(Code)
The Wicket servlet 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:   wicket.Application.logEventTarget(wicket.IRequestTarget)



logResponseTarget
public void logResponseTarget(IRequestTarget target)(Code)

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



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



mount
final public void mount(String path, IRequestTargetUrlCodingStrategy encoder)(Code)
Mounts an encoder at the given path.
Parameters:
  path - the path to mount the encoder on
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, PageMap pageMap, 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:
  pageMap - pagemap this mount is for
Parameters:
  bookmarkablePageClass - the bookmarkable page class to mountWebApplication.mountBookmarkablePage(String,String,Class)



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 bookmarkable page class on
Parameters:
  resourceKey - the shared key of the resource being mounted



newRequestCycleProcessor
protected IRequestCycleProcessor newRequestCycleProcessor()(Code)
May be replaced by subclasses which whishes to uses there own implementation of IRequestCycleProcessor IRequestCycleProcessor



newSession
public Session newSession()(Code)
Create new Wicket Session object. Note, this method is not called if you registered your own ISessionFactory with the Application.
See Also:   wicket.ISessionFactory.newSession



newSessionStore
protected ISessionStore newSessionStore()(Code)

See Also:   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



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)



setRequestLogger
final public void setRequestLogger(RequestLogger logger)(Code)
Sets the RequestLogger .
Parameters:
  logger - The request logger



setSessionFactory
final public void setSessionFactory(ISessionFactory sessionFactory)(Code)

Parameters:
  sessionFactory - The session factory to use



setWicketServlet
final public void setWicketServlet(WicketServlet wicketServlet)(Code)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.
Parameters:
  wicketServlet - The wicket servlet instance for this application
throws:
  IllegalStateException - If an attempt is made to call this method once the wicketservlet has been set for the 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 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 wicket.Application
final public void addComponentInstantiationListener(IComponentInstantiationListener listener)(Code)(Java Doc)
final public void configure(String configurationType)(Code)(Java Doc)
final public void configure(String configurationType, IResourceFinder resourceFinder)(Code)(Java Doc)
final public void configure(String configurationType, String resourceFolder)(Code)(Java Doc)
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)
final public IAjaxSettings getAjaxSettings()(Code)(Java Doc)
abstract public String getApplicationKey()(Code)(Java Doc)
final public IApplicationSettings getApplicationSettings()(Code)(Java Doc)
public String getConfigurationType()(Code)(Java Doc)
final public IDebugSettings getDebugSettings()(Code)(Java Doc)
final public IExceptionSettings getExceptionSettings()(Code)(Java Doc)
final public IFrameworkSettings getFrameworkSettings()(Code)(Java Doc)
abstract public Class getHomePage()(Code)(Java Doc)
final public MarkupCache getMarkupCache()(Code)(Java Doc)
final public IMarkupSettings getMarkupSettings()(Code)(Java Doc)
final public Serializable getMetaData(MetaDataKey key)(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public IPageSettings getPageSettings()(Code)(Java Doc)
final public IRequestCycleSettings getRequestCycleSettings()(Code)(Java Doc)
final public IResourceSettings getResourceSettings()(Code)(Java Doc)
final public ISecuritySettings getSecuritySettings()(Code)(Java Doc)
abstract protected ISessionFactory getSessionFactory()(Code)(Java Doc)
final public ISessionSettings getSessionSettings()(Code)(Java Doc)
final public ISessionStore getSessionStore()(Code)(Java Doc)
public Settings getSettings()(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 static boolean isAttached()(Code)(Java Doc)
public void logEventTarget(IRequestTarget target)(Code)(Java Doc)
public void logResponseTarget(IRequestTarget requestTarget)(Code)(Java Doc)
abstract protected ISessionStore newSessionStore()(Code)(Java Doc)
final public void removeComponentInstantiationListener(IComponentInstantiationListener 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.