|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.Application wicket.protocol.http.portlet.PortletApplication
public abstract class PortletApplication
A portlet application is a subclass of Application which associates with an instance of WicketPortlet to serve pages as portlets. This class is intended to be subclassed by framework clients to define a web application.
Application settings are given defaults by the Portletapplication() constructor and internalInit method, such as error page classes appropriate for portlets. PortletApplication 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.
WicketPortlet
,
IApplicationSettings
,
IDebugSettings
,
IExceptionSettings
,
IMarkupSettings
,
IPageSettings
,
IRequestCycleSettings
,
IResourceSettings
,
ISecuritySettings
,
ISessionSettings
Field Summary |
---|
Fields inherited from class wicket.Application |
---|
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT |
Constructor Summary | |
---|---|
PortletApplication()
|
Method Summary | |
---|---|
void |
destroyPortlet()
|
IRequestCycleProcessor |
getActionRequestCycleProcessor()
|
java.lang.String |
getApplicationKey()
Gets the unique key of this application within a given context (like a web application). |
protected IRequestCycleFactory |
getDefaultRequestCycleFactory()
Create a request cycle factory which is used by default by WebSession. |
protected IRequestCycleProcessor |
getRenderRequestCycleProcessor()
Gets the default request cycle processor (with lazy initialization). |
RequestLogger |
getRequestLogger()
Gets the RequestLogger . |
WicketPortletSession |
getSession(WicketPortletRequest request)
|
java.lang.String |
getSessionAttributePrefix(WicketPortletRequest request)
Gets the prefix for storing variables in the actual session (typically HttpSession for this application instance. |
protected ISessionFactory |
getSessionFactory()
Gets the factory for creating session instances. |
WicketPortlet |
getWicketPortlet()
|
void |
initPortlet()
|
protected void |
internalInit()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
protected IRequestCycleProcessor |
newActionRequestCycleProcessor()
May be replaced by subclasses which whishes to uses there own implementation of IRequestCycleProcessor |
WicketPortletRequest |
newPortletRequest(javax.portlet.PortletRequest req)
|
WicketPortletResponse |
newPortletResponse(javax.portlet.PortletResponse res)
|
protected IRequestCycleProcessor |
newRenderRequestCycleProcessor()
May be replaced by subclasses which whishes to uses there own implementation of IRequestCycleProcessor |
Session |
newSession()
Creates a new session |
protected ISessionStore |
newSessionStore()
Creates a new session facade. |
void |
setRequestLogger(RequestLogger logger)
Sets the RequestLogger . |
void |
setWicketPortlet(WicketPortlet portlet)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletApplication()
Method Detail |
---|
public void setWicketPortlet(WicketPortlet portlet)
portlet
- public WicketPortlet getWicketPortlet()
public WicketPortletSession getSession(WicketPortletRequest request)
request
-
public WicketPortletResponse newPortletResponse(javax.portlet.PortletResponse res)
res
-
public WicketPortletRequest newPortletRequest(javax.portlet.PortletRequest req)
req
-
public java.lang.String getApplicationKey()
Application
getApplicationKey
in class Application
protected ISessionFactory getSessionFactory()
Application
getSessionFactory
in class Application
protected ISessionStore newSessionStore()
Application
newSessionStore
in class Application
public Session newSession()
ISessionFactory
newSession
in interface ISessionFactory
public void initPortlet()
protected void internalInit()
<init-param><param-name>configuration</param-name>
).
If not found check the portlet context init paramer
<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.
internalInit
in class Application
public void destroyPortlet()
protected IRequestCycleFactory getDefaultRequestCycleFactory()
WebSession.getRequestCycleFactory()
,
IRequestCycleFactory
protected IRequestCycleProcessor newRenderRequestCycleProcessor()
protected IRequestCycleProcessor newActionRequestCycleProcessor()
public IRequestCycleProcessor getActionRequestCycleProcessor()
protected final IRequestCycleProcessor getRenderRequestCycleProcessor()
IRequestCycleProcessor
that will be used by
RequestCycle
s when custom implementations of the request cycle
do not provide their own customized versions.
public final RequestLogger getRequestLogger()
RequestLogger
.
public final void setRequestLogger(RequestLogger logger)
RequestLogger
.
logger
- The request loggerpublic final java.lang.String getSessionAttributePrefix(WicketPortletRequest request)
HttpSession
for this application instance.
request
- the request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |