A focusing to this is that the Valve pattern of Turbine 3 has been adopted from that of Tomcat using it to implement internally the Filter mechanism it provides for its Servlet API clients. So they are really quite closely related, but extensions added to Turbine Valves makes it easier to access Turbine specific data than from more general Filters, though this can also be solved by applying ServletRequest attributes in an appropriate way.

-- Ilkka


Kurt Schrader wrote:
On Wed, 29 Jan 2003, Gonzalo Diethelm wrote:

What is the exact definition of Filter and Valve? Are these
formal concepts?

A filter is a concept defined in J2EE:
A filter is an object than perform filtering tasks on either the request
to a resource (a servlet or static content), or on the response from a
resource, or both.
See:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Filter.html

A valve is a concept in Turbine 3 that is part of the processing pipeline
for the response.

-Kurt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to