tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: Tutorial for implementing a valve
Date Tue, 06 Jan 2009 13:20:15 GMT
Gregor Schneider wrote:
> Dear all,
> 
> I'd like to try something in Tomcat 6, and therefore I have to
> implement it as a valve.
> 
> I know that I have to implement org.apache.catalina.valve, however, I
> got no clue where to start.
> 
> - In which jar among all the jars delivered with Tomcat do I find the interface?
> - Once having the valve created, where do I put it (will
> ${CATALINA_HOME}/webapps/${myApp}/WEB-INF/lib be ok)?
> - Anybody knows about a tutorial or how-two?

AFAIK catalina.jar is the place to look.

I think that you probably want to extend ValveBase instead of just
implementing the interface too.

In essence, I've found Valves to be quite similar to Filters at the most
basic level.  Adding the Lifecycle interface makes things a little more
complicated.

I pulled the AccessLogValve apart when I first played with them.


p


> TIA
> 
> Gregor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message