WARequestHandler
WARequestHandler
s have undergone several changes in Seaside 3.0.
- a request handler should push itself on the WARequestContext
- a request handler can be decorated with
WARequestFilter
s
WARequestFilter
WARequestFilter
is similar to WADecoration
but works on a WARequestHandler
instead of a WAComponent
. It is a direct way to hook into the request processing. Filters are similar to Java Servlet filters. Possible uses include:
- caching
- logging
- security
- transactions
Migration
You have to implement #handleFiltered:
instead of #handleRequest:
. This method will be passed the current request context instead of the current request. You can get the request from the context by calling #request
.