Hi,
I'm assuming that in your code, you want to find out what the original
URL was that your client used when hitting the filter. There is,
perhaps, a bog standard way of doing this that I'm not seeing. One
approach that comes to mind, though, is to set it as an attribute of
the URL.
So you have a rule, way on top of your urlrewrite.xml where you call:
<rule>
<from>.*</from>
<set name="local.test.originalurl">%{request-url}</set>
</rule>
Then in your code, if you can get a request object:
String originalUrl = (String)request.getAttribute("local.test.originalurl");
Something like that, anyway. This would require some tweaking. I'm not
even sure if the rule is legal as is.
regards,
Wim