| 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,
Method Summary | |
final void | addBufferedResponse(String sessionId, String bufferId, BufferedHttpServletResponse renderedResponse) Add a buffered response to the redirect buffer. | final public String | getApplicationKey() | public String | getConfigurationType() | final protected Object | getDefaultRequestCycleFactory() | final public String | getInitParameter(String key) Gets an init parameter from the filter's context. | final public IRequestCycleProcessor | getRequestCycleProcessor() Gets the default request cycle processor (with lazy initialization). | protected IResourceFinder | getResourceFinder() | final public ServletContext | getServletContext() Gets the servlet context for this application. | final public String | getSessionAttributePrefix(WebRequest request) Gets the prefix for storing variables in the actual session (typically
HttpSession for this application instance. | final public WicketFilter | getWicketFilter() | protected void | init() 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 void | internalDestroy() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. | protected void | internalInit() THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. | public void | logEventTarget(IRequestTarget target) | public void | logResponseTarget(IRequestTarget target) | final void | logStarted() Log that this application is started. | final public void | mount(IRequestTargetUrlCodingStrategy encoder) Mounts an encoder at the given path. | final public void | mount(String path, PackageName packageName) Mounts all bookmarkable pages at the given path. | final public void | mountBookmarkablePage(String path, Class bookmarkablePageClass) Mounts a bookmarkable page class to the given path. | final public void | mountBookmarkablePage(String path, String pageMapName, Class bookmarkablePageClass) Mounts a bookmarkable page class to the given pagemap and path. | final public void | mountSharedResource(String path, String resourceKey) Mounts a shared resource class to the given path. | public RequestCycle | newRequestCycle(Request request, Response response) | protected IRequestCycleProcessor | newRequestCycleProcessor() Gets a new request cycle processor for web requests. | final public Session | newSession() Create new Wicket Session object. | final public Session | newSession(Request request) Create new Wicket Session object. | public Session | newSession(Request request, Response response) | protected ISessionStore | newSessionStore() | protected WebRequest | newWebRequest(HttpServletRequest servletRequest) Create a new WebRequest. | protected WebResponse | newWebResponse(HttpServletResponse servletResponse) Create a WebResponse. | protected void | outputDevelopmentModeWarning() This method prints a warning to stderr that we are starting in
development mode. | final BufferedHttpServletResponse | popBufferedResponse(String sessionId, String bufferId) Returns the redirect map where the buffered render pages are stored in
and removes it immediately. | public void | sessionDestroyed(String sessionId) | final protected void | setApplicationKey(String applicationKey) | final public void | setWicketFilter(WicketFilter wicketFilter) THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. | final public void | unmount(String path) Unmounts whatever encoder is mounted at a given path. |
WebApplication | public WebApplication()(Code) | | Constructor. Use
WebApplication.init() for any configuration of your
application instead of overriding the constructor.
|
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 |
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 |
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.
|
logStarted | final void logStarted()(Code) | | Log that this application is started.
|
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 |
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 |
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 |
|
|