Class PortletModeHandlerMapping

  • All Implemented Interfaces:
    Aware, ApplicationContextAware, Ordered, HandlerMapping

    public class PortletModeHandlerMapping
    extends AbstractMapBasedHandlerMapping<PortletMode>
    Implementation of the HandlerMapping interface to map from the current PortletMode to request handler beans.

    The bean configuration for this mapping will look something like this:

            <bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping">
                    <property name="portletModeMap">
                            <map>
                                    <entry key="view"><ref bean="viewHandler"/></entry>
                                    <entry key="edit"><ref bean="editHandler"/></entry>
                                    <entry key="help"><ref bean="helpHandler"/></entry>
                            </map>
                    </property>
            </bean>
     
    Since:
    2.0
    Author:
    William G. Thompson, Jr., John A. Lewis