org.apache.struts2.impl
Class InterceptorAdapter

java.lang.Object
  extended by org.apache.struts2.impl.InterceptorAdapter
All Implemented Interfaces:
Interceptor, Serializable

public class InterceptorAdapter
extends Object
implements Interceptor

See Also:
Serialized Form

Field Summary
(package private)  org.apache.struts2.spi.Interceptor delegate
           
private static long serialVersionUID
           
 
Constructor Summary
InterceptorAdapter(org.apache.struts2.spi.Interceptor delegate)
           
 
Method Summary
 void destroy()
          Called to let an interceptor clean up any resources it has allocated.
 void init()
          Called after an interceptor is created, but before any requests are processed using intercept , giving the Interceptor a chance to initialize any needed resources.
 String intercept(ActionInvocation invocation)
          Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the request by the ActionInvocation or to short-circuit the processing and just return a String return code.
 
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

delegate

final org.apache.struts2.spi.Interceptor delegate
Constructor Detail

InterceptorAdapter

public InterceptorAdapter(org.apache.struts2.spi.Interceptor delegate)
Method Detail

intercept

public String intercept(ActionInvocation invocation)
                 throws Exception
Description copied from interface: Interceptor
Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the request by the ActionInvocation or to short-circuit the processing and just return a String return code.

Specified by:
intercept in interface Interceptor
Returns:
the return code, either returned from ActionInvocation.invoke(), or from the interceptor itself.
Throws:
Exception - any system-level error, as defined in Action.execute().

destroy

public void destroy()
Description copied from interface: Interceptor
Called to let an interceptor clean up any resources it has allocated.

Specified by:
destroy in interface Interceptor

init

public void init()
Description copied from interface: Interceptor
Called after an interceptor is created, but before any requests are processed using intercept , giving the Interceptor a chance to initialize any needed resources.

Specified by:
init in interface Interceptor


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