com.opensymphony.xwork.interceptor
Class TimerInterceptor

java.lang.Object
  extended bycom.opensymphony.xwork.interceptor.TimerInterceptor
All Implemented Interfaces:
Interceptor

public class TimerInterceptor
extends Object
implements Interceptor

TimerInterceptor Created : Jan 9, 2003 1:15:53 AM

Author:
Jason Carreira

Constructor Summary
TimerInterceptor()
           
 
Method Summary
 void destroy()
          Called to let an interceptor clean up any resources it has allocated.
 boolean equals(Object o)
           
 int hashCode()
           
 void init()
          Called after an Interceptor is created, but before any requests are processed using the intercept() methodName.
 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 DefaultActionInvocation or to short-circuit the processing and just return a String return code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerInterceptor

public TimerInterceptor()
Method Detail

destroy

public void destroy()
Called to let an interceptor clean up any resources it has allocated.

Specified by:
destroy in interface Interceptor

equals

public boolean equals(Object o)

hashCode

public int hashCode()

init

public void init()
Called after an Interceptor is created, but before any requests are processed using the intercept() methodName. This gives the Interceptor a chance to initialize any needed resources.

Specified by:
init in interface Interceptor

intercept

public String intercept(ActionInvocation invocation)
                 throws Exception
Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the request by the DefaultActionInvocation 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().

XWork Project Page