Building the request tracking filter
Our task is to enhance the Beer application so that whenever someone requests any of the resources associated with updating recipes, we’ll be able to keep track of who made the request. Here’s one version of what such a filter might look like.
Note
Filters have no idea who’s going to call them or who’s next in line!
Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.