Splash › Forums › Rewrite Users › Rewrite API or documentation
This topic contains 21 replies, has 3 voices, and was last updated by Kalpana 4 years, 10 months ago.
I need access to Rewrite API or documentation as i am implementing Rewrite in my project. And i need to understand clearly what API does instead just make it work somehow by trial.
unfortunately there isn’t current much documentation. But you could have a look at these examples:
There are also some example applications on GitHub:
The Javadocs are deployed with the artifacts to the Maven repository. So you should be able to get the Javadocs using your IDE very quickly.
I need to know that how can we stop the request from rendering the next resource there itself where a rule definition fails.
In my case, I have defined three rules and if one of those rules gets failed, still the next page gets rendered.
You might want to look at the Lifecycle.abort() Operation.
Hope this helps,
We are using Rewrite to prevent XSS attack by checking POST and GET params. What other features of Rewrite are available which we can be useful?
I need to know that is there any way to match RequestParameter name case insensitively.
Below is the code where I need to implement this.
You could simply add (?i) in front of the pattern to switch to case-insensitive mode when evaluation the regular expression. I guess this should work.
I am using rewrite-servlet-1.0.5.Final.jar. So want to confirm that we are using OCPSoft Rewrite is it Beta version or production version? If Beta then when do you plan to launch production version?
The current version of Rewrite is a “.Final” version. So you can consider it stable.
You could also use a Transformer to force the values into a specific case:
Is Rewrite Open source?
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!