Splash › Forums › Rewrite Users › Extending Rewrite Filter to add attribute
Tagged: Rewrite Filter
This topic contains 1 reply, has 2 voices, and was last updated by Lincoln Baxter III 9 years, 2 months ago.
I would like to add a Rewrite Filter to add a request attribute to all inbound request. That attribute will have the current requested URL. What’s the best way to achieve it?
You can use a RewriteLifecycleListener for this purpose:
(You might want to extend HttpRewriteLifecycleListener as a base class.)
You’d probably to add your attributes in the beforeInboundRewrite() method.
The forum ‘Rewrite Users’ is closed to new topics and replies.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!