org.apache.wicket.util.tester
Class WicketTester.DummyWebApplication

java.lang.Object
  extended by org.apache.wicket.Application
      extended by org.apache.wicket.protocol.http.WebApplication
          extended by org.apache.wicket.util.tester.WicketTester.DummyWebApplication
Direct Known Subclasses:
WicketTester.NonPageCachingDummyWebApplication
Enclosing class:
WicketTester

public static class WicketTester.DummyWebApplication
extends WebApplication

Default dummy web application for testing. Uses HttpSessionStore to store pages and the Session.


Field Summary
 
Fields inherited from class org.apache.wicket.Application
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT
 
Constructor Summary
WicketTester.DummyWebApplication()
           
 
Method Summary
 java.lang.Class getHomePage()
          Application subclasses must specify a home page class by implementing this abstract method.
protected  ISessionStore newSessionStore()
          Creates a new session facade.
protected  WebResponse newWebResponse(javax.servlet.http.HttpServletResponse servletResponse)
          Create a WebResponse.
protected  void outputDevelopmentModeWarning()
          This method prints a warning to stderr that we are starting in development mode.
 
Methods inherited from class org.apache.wicket.protocol.http.WebApplication
getApplicationKey, getConfigurationType, getDefaultRequestCycleFactory, getInitParameter, getRequestCycleProcessor, getResourceFinder, getServletContext, getSessionAttributePrefix, getWicketFilter, init, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mount, mountBookmarkablePage, mountBookmarkablePage, mountSharedResource, newAjaxRequestTarget, newRequestCycle, newRequestCycleProcessor, newSession, newSession, newSession, newWebRequest, sessionDestroyed, setApplicationKey, setWicketFilter, unmount
 
Methods inherited from class org.apache.wicket.Application
addComponentInstantiationListener, addComponentOnAfterRenderListener, addComponentOnBeforeRenderListener, addRenderHeadListener, configure, destroy, exists, get, get, getApplicationKeys, getApplicationSettings, getConverterLocator, getDebugSettings, getExceptionSettings, getFrameworkSettings, getMarkupCache, getMarkupSettings, getMetaData, getName, getPageSettings, getRequestCycleFactory, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceSettings, getSecuritySettings, getSessionFactory, getSessionSettings, getSessionStore, getSharedResources, initializeComponents, newConverterLocator, newRequestCycle, newRequestLogger, notifyRenderHeadListener, onDestroy, removeComponentInstantiationListener, removeComponentOnAfterRenderListener, removeComponentOnBeforeRenderListener, removeRenderHeadListener, set, setMetaData, unset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketTester.DummyWebApplication

public WicketTester.DummyWebApplication()
Method Detail

getHomePage

public java.lang.Class getHomePage()
Description copied from class: Application
Application subclasses must specify a home page class by implementing this abstract method.

Specified by:
getHomePage in class Application
Returns:
Home page class for this application
See Also:
Application.getHomePage()

newSessionStore

protected ISessionStore newSessionStore()
Description copied from class: Application
Creates a new session facade. Is called once per application, and is typically not something clients reimplement.

Overrides:
newSessionStore in class WebApplication
Returns:
The session facade
See Also:
Application.newSessionStore()

newWebResponse

protected WebResponse newWebResponse(javax.servlet.http.HttpServletResponse servletResponse)
Description copied from class: WebApplication
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.

Overrides:
newWebResponse in class WebApplication
Returns:
a WebResponse object
See Also:
WebApplication.newWebResponse(javax.servlet.http.HttpServletResponse)

outputDevelopmentModeWarning

protected void outputDevelopmentModeWarning()
Description copied from class: WebApplication
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.

Overrides:
outputDevelopmentModeWarning in class WebApplication


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.