You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Arieh Markel <Ar...@Central.Sun.COM> on 2000/02/10 17:41:10 UTC
Help with Interceptors
I would like to write an Interceptor that can perform some verification
on the request parameters for all servlets on a specific Context
(or conversely, for all Contexts that I define).
I see a number of Interceptor interfaces in the source tree.
The idea I have in mind, is that the Interceptor will look at the Properties
of the HttpServletRequest, and depending on its finding, do things like:
. add a property to the request
. selectively perform a servlet redirection
. return an error message
Would ServiceInterceptor, or SecurityInterceptor be good starting points ?
Thanks,
Arieh
--
Arieh Markel Sun Microsystems Inc.
Network Storage 500 Eldorado Blvd. MS UBRM11-194
e-mail: arieh.markel@sun.COM Broomfield, CO 80021
Let's go Panthers !!!! Phone: (303) 272-8547 x78547
(e-mail me with subject SEND PUBLIC KEY to get public key)
Re: Help with Interceptors
Posted by co...@eng.sun.com.
> The idea I have in mind, is that the Interceptor will look at the Properties
> of the HttpServletRequest, and depending on its finding, do things like:
>
> . add a property to the request
> . selectively perform a servlet redirection
> . return an error message
>
> Would ServiceInterceptor, or SecurityInterceptor be good starting points ?
RequestInterceptor if you want to process the request.
ContextInterceptor if you want "container"-event notifications.
( we are still working on this - but I think there are stable now,
except configuration and few small details )
Service and Security Interceptor are used by J2EE, will be part of the
J2EE "adapter".
Costin