An
Interceptor, as the name implies, intercepts request processing prior to, and after, the call to a Container's
service()
method. Note that Interceptors may be associated with
any type of Container, so it is up to the Interceptor implementation to avoid class cast exceptions. An Interceptor can refuse to be associated with a particular Container by returning
IllegalArgumentException
to the
setContainer()
method.
The Container with which an Interceptor is associated must guarantee that the postService()
method will be called if the preService()
method was called, even in the face of exceptions.
@author Craig R. McClanahan
@version $Revision: 1.4 $ $Date: 2000/01/24 08:31:30 $