| org.springframework.web.portlet.mvc.AbstractController org.springframework.web.portlet.mvc.PortletWrappingController
PortletWrappingController | public class PortletWrappingController extends AbstractController implements BeanNameAware,InitializingBean,DisposableBean,PortletContextAware,PortletConfigAware(Code) | | Controller implementation that wraps a portlet instance which it manages
internally. Such a wrapped portlet is not known outside of this controller;
its entire lifecycle is covered here.
Useful to invoke an existing portlet via Spring's dispatching infrastructure,
for example to apply Spring
org.springframework.web.portlet.HandlerInterceptor HandlerInterceptors to its requests.
Example:
<bean id="wrappingController" class="org.springframework.web.portlet.mvc.PortletWrappingController">
<property name="portletClass">
<value>org.springframework.web.portlet.sample.HelloWorldPortlet</value>
</property>
<property name="portletName">
<value>hello-world</value>
</property>
<property name="initParameters">
<props>
<prop key="config">/WEB-INF/hello-world-portlet-config.xml</prop>
</props>
</property>
</bean>
author: Juergen Hoeller author: John A. Lewis since: 2.0 |
destroy | public void destroy()(Code) | | |
handleActionRequestInternal | protected void handleActionRequestInternal(ActionRequest request, ActionResponse response) throws Exception(Code) | | |
handleRenderRequestInternal | protected ModelAndView handleRenderRequestInternal(RenderRequest request, RenderResponse response) throws Exception(Code) | | |
setInitParameters | public void setInitParameters(Properties initParameters)(Code) | | Specify init parameters for the portlet to wrap,
as name-value pairs.
|
setPortletClass | public void setPortletClass(Class portletClass)(Code) | | Set the class of the Portlet to wrap.
Needs to implement javax.portlet.Portlet .
See Also: javax.portlet.Portlet |
setPortletConfig | public void setPortletConfig(PortletConfig portletConfig)(Code) | | |
setPortletContext | public void setPortletContext(PortletContext portletContext)(Code) | | |
setPortletName | public void setPortletName(String portletName)(Code) | | Set the name of the Portlet to wrap.
Default is the bean name of this controller.
|
setUseSharedPortletConfig | public void setUseSharedPortletConfig(boolean useSharedPortletConfig)(Code) | | Set whether to use the shared PortletConfig object passed in
through setPortletConfig , if available.
Default is "true". Turn this setting to "false" to pass in
a mock PortletConfig object with the bean name as portlet name,
holding the current PortletContext.
See Also: PortletWrappingController.setPortletConfig |
|
|