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 5 years, 3 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.
You must be logged in to reply to this topic.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!