| 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,
Method Summary | |
final void | addBufferedResponse(String sessionId, String bufferId, BufferedHttpServletResponse renderedResponse) Add a buffered response to the redirect buffer. | final public String | getApplicationKey() | protected IRequestCycleFactory | getDefaultRequestCycleFactory() Create a request cycle factory which is used by default by WebSession. | final public IRequestCycleProcessor | getRequestCycleProcessor() Gets the default request cycle processor (with lazy initialization). | final public RequestLogger | getRequestLogger() Gets the
RequestLogger . | final WebSession | getSession(WebRequest request) Gets a WebSession object from the HttpServletRequest, creating a new one
if it doesn't already exist. | final public String | getSessionAttributePrefix(WebRequest request) Gets the prefix for storing variables in the actual session (typically
HttpSession for this application instance. | protected ISessionFactory | getSessionFactory() | final public WicketServlet | getWicketServlet() | 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(String path, 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, PageMap pageMap, Class bookmarkablePageClass) Mounts a bookmarkable page class to the given pagemap and 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. | protected IRequestCycleProcessor | newRequestCycleProcessor() | public Session | newSession() Create new Wicket Session object. | protected ISessionStore | newSessionStore() | protected WebRequest | newWebRequest(HttpServletRequest servletRequest) Create a new WebRequest. | protected WebResponse | newWebResponse(HttpServletResponse servletResponse) Create a WebResponse. | 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 | setRequestLogger(RequestLogger logger) Sets the
RequestLogger . | final public void | setSessionFactory(ISessionFactory sessionFactory) | final public void | setWicketServlet(WicketServlet wicketServlet) 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 |
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 |
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 |
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.
|
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 |
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) | | |
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 |
|
|