org.apache.struts2.portlet.interceptor
Class PortletAwareInterceptor

java.lang.Object
  extended by com.opensymphony.xwork2.interceptor.AbstractInterceptor
      extended by org.apache.struts2.portlet.interceptor.PortletAwareInterceptor
All Implemented Interfaces:
Interceptor, Serializable, PortletActionConstants, StrutsStatics

public class PortletAwareInterceptor
extends AbstractInterceptor
implements PortletActionConstants, StrutsStatics

See Also:
Serialized Form

Field Summary
private static Log LOG
           
private static long serialVersionUID
           
 
Fields inherited from interface org.apache.struts2.portlet.PortletActionConstants
ACTION_PARAM, ACTION_RESET, DEFAULT_ACTION_FOR_MODE, DEFAULT_ACTION_NAME, DEFAULT_DISPATCHER_SERVLET_NAME, ERROR_ACTION, EVENT_ACTION, EVENT_PHASE, MODE_NAMESPACE_MAP, MODE_PARAM, PHASE, PORTLET_CONFIG, PORTLET_NAMESPACE, RENDER_DIRECT_LOCATION, RENDER_PHASE, REQUEST, RESPONSE, STACK_FROM_EVENT_PHASE
 
Fields inherited from interface org.apache.struts2.StrutsStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_PORTLET_CONTEXT
 
Constructor Summary
PortletAwareInterceptor()
           
 
Method Summary
 String intercept(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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

LOG

private static final Log LOG
Constructor Detail

PortletAwareInterceptor

public PortletAwareInterceptor()
Method Detail

intercept

public String intercept(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 Interceptor
Specified by:
intercept in class AbstractInterceptor
Parameters:
invocation - an encapsulation of the action execution state.
Returns:
the return code, either returned from ActionInvocation.invoke(), or from the interceptor itself.
Throws:
Exception - if an error occurs when setting action properties.


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.