|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
initFilterBean() method that might
contain custom initialization of a subclass.
DispatcherPortlet does not permit multipart request resolving in a resource request phase and tinkering
DispatcherPortlet is a fragile task, typical usage of this resolver should look like this:
Define it in web application context:ConfigurableEnvironment allowing initialization of
portlet-related PropertySource objects at the
earliest moment the PortletContext and (optionally) PortletConfig
become available.PortletApplicationContext implementation class to use: "portletContextClass"
ApplicationContextInitializer classes to use
for initializing the web application context: "portletContextInitializerClasses"
DispatcherPortlet that adds support for:
A portlet application level spring context
ConfigurablePortletEnvironment to initialize the portlet property sourcesPortletApplicationContext into the type hierarchy of
StaticPortletApplicationContext.PortletApplicationContext into the type hierarchy of
XmlPortletApplicationContext.PortletApplicationContextUtils2.getPortletApplicationContext(PortletContext) to see if
the portlet application level context has been loaded.
ConfigurablePortletApplicationContext created by this
PortletContextLoader after config locations have been supplied to the context
but before the context is refreshed.
ApplicationContextInitializer implementation classes to use
if any have been specified by PortletContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM.
GenericPortletFilterBean.doCommonFilter(PortletRequest, PortletResponse, FilterChain)
GenericPortletFilterBean.doCommonFilter(PortletRequest, PortletResponse, FilterChain)
GenericPortletFilterBean.doCommonFilter(PortletRequest, PortletResponse, FilterChain)
GenericPortletFilterBean.doCommonFilter(PortletRequest, PortletResponse, FilterChain)
PortletRequest.LIFECYCLE_PHASE attribute to figure out what
type of request/response are in use and call the appropriate doFilter method on FilterChain
PortletFilter, determines the right PortletFilter interface to use by
looking at the PortletRequest.LIFECYCLE_PHASE attribute
WebApplicationContext from the PortletContext.
ActionFilter, EventFilter,
RenderFilter, and ResourceFilter which treats its config
parameters (init-param entries within the filter
tag in portlet.xml) as bean properties.PortletApplicationContext from which to load the delegate PortletFilter bean.
PortletContextLoaderListener.
ContextLoaderFilter.
contextClass" and
"contextConfigLocation" context-params.
PortletFilter.init and
PortletFilter.destroy lifecycle methods on the target bean.
PortletApplicationContext for a given
PortletContext.PortletApplicationContext.ContribDispatcherPortlet.PortletContextLoader
PortletApplicationContext from which to load the delegate PortletFilter bean.
PortletFilter.init and
PortletFilter.destroy lifecycle methods on the target bean.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||