On 23-04-2010 at 02:45, Yves Senn wrote: > We have an Intercepter, which needs to modify the response (set Headers), > what is the prefered way to do this? Does this have an impact on the > LifeCycleStage the Intercepter can be used?
An interceptor is essentially a filter. It can choose to let the event life cycle continue, or step in and provide it's own Resolution. But it can also do both: let the execution proceed() first, and then wrap the Resolution. In the Resolution, you can: - Set the response headers, and then let the wrapped Resolution do it's thing (note that it may override the headers you've just set). - Wrap the Response as well, thus doing the same as above while ignoring any/some headers the wrapped Resolution sets. Your implementation consists of: 1. an Interceptor 2. a wrapping Resolution or an entirely different Resolution 3. Optionally a wrapping HttpServletResponse Oscar -- ,-_ /() ) Oscar Westra van Holthe - Kind http://www.xs4all.nl/~kindop/ (__ ( =/ () QED - Quite Easily Done ------------------------------------------------------------------------------ _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users