Custom interceptor: It implements the Intreceptor interface or extend a MethodFilterInterceptor class in order to make a parameterized interceptor.
We need to override below methods:
public void init(){ //Initialization } public String intercept(ActionInvocation ae) throws Exception{ return ae.invoke(); //invoke next interceptor or action } public destroy(){ }