Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/rewrite/examples.page
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ExampleConfigurationProvider extends HttpConfigurationProvider
.addRule(Join.path("/signup").to("/pages/signup.xhtml").withInboundCorrection())

// Perform additional operations on rule execution
.addRule(Join.path("/404").to("/pages/404.xhtml").perform(Response.setCode(404)));
.addRule(Join.path("/404").to("/pages/404.xhtml")).perform(Response.setStatus(404));

}

Expand Down Expand Up @@ -257,4 +257,4 @@ public class JaasRolesTestProvider extends HttpConfigurationProvider


<h2 class="toc">Extending the configuration</h2>
When using the Rewrite Servlet module, most important configuration classes can be found in the <a href="https://github.com/ocpsoft/rewrite/tree/master/impl-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config">org.ocpsoft.rewrite.servlet.config</a> package. We continue to add new Conditions, Operations, and Rules, but you may always simply implement your own, or combine existing configuration objects to achieve a new result if something you are looking for does not exist. If you do, please help out the rest of the community and consider <a href="https://github.com/ocpsoft/rewrite">contributing your objects</a> back to the project.
When using the Rewrite Servlet module, most important configuration classes can be found in the <a href="https://github.com/ocpsoft/rewrite/tree/master/impl-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config">org.ocpsoft.rewrite.servlet.config</a> package. We continue to add new Conditions, Operations, and Rules, but you may always simply implement your own, or combine existing configuration objects to achieve a new result if something you are looking for does not exist. If you do, please help out the rest of the community and consider <a href="https://github.com/ocpsoft/rewrite">contributing your objects</a> back to the project.