org.apache.struts2.portlet.interceptor
Class PortletAwareInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.portlet.interceptor.PortletAwareInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork2.interceptor.Interceptor, Serializable, PortletActionConstants, StrutsStatics
public class PortletAwareInterceptor
- extends com.opensymphony.xwork2.interceptor.AbstractInterceptor
- implements PortletActionConstants, StrutsStatics
- See Also:
- Serialized Form
Fields inherited from interface org.apache.struts2.portlet.PortletActionConstants |
ACTION_MAPPING, ACTION_PARAM, ACTION_PHASE, ACTION_RESET, DEFAULT_ACTION_FOR_MODE, DEFAULT_ACTION_NAME, DEFAULT_DISPATCHER_SERVLET_NAME, DISPATCH_TO, ERROR_ACTION, EVENT_ACTION, MODE_NAMESPACE_MAP, MODE_PARAM, PHASE, PORTLET_CONFIG, PORTLET_NAMESPACE, RENDER_DIRECT_LOCATION, RENDER_PHASE, REQUEST, RESPONSE, STACK_FROM_EVENT_PHASE |
Method Summary |
String |
intercept(com.opensymphony.xwork2.ActionInvocation invocation)
Sets action properties based on the interfaces an action implements. |
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor |
destroy, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletAwareInterceptor
public PortletAwareInterceptor()
intercept
public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
throws Exception
- Sets action properties based on the interfaces an action implements. Things like application properties,
parameters, session attributes, etc are set based on the implementing interface.
- Specified by:
intercept
in interface com.opensymphony.xwork2.interceptor.Interceptor
- Specified by:
intercept
in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
- Parameters:
invocation
- an encapsulation of the action execution state.
- Throws:
Exception
- if an error occurs when setting action properties.
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.