Package webwork.interceptor
Interface Interceptor
- All Known Implementing Classes:
ChainedInterceptor
public interface Interceptor
Defines the contract for an interceptor to hook into the lifecycle of an action.
- Since:
- v4.2
-
Method Summary
Modifier and TypeMethodDescriptionintercept(InterceptorChain chain) The intercept method of the Interceptor is called by the dispatcher when an action is passed through the chain.
-
Method Details
-
intercept
The intercept method of the Interceptor is called by the dispatcher when an action is passed through the chain. The InterceptorChain passed in to this method allows the Interceptor to pass on to the next entity in the chain.- Parameters:
chain- the interceptor chain that contains the next interceptor and the ultimate action- Returns:
- the result of the execution
- Throws:
Exception- if something goes wrong
-