org.ocpsoft.rewrite.servlet.config.rule
Class TrailingSlash
java.lang.Object
org.ocpsoft.rewrite.servlet.config.rule.TrailingSlash
- All Implemented Interfaces:
- Condition, Operation, Rule
public abstract class TrailingSlash
- extends Object
- implements Rule
A Rule that creates a bi-directional rewrite rule handling appending or removal of the trailing slash
character in Address paths.
- Author:
- Lincoln Baxter, III
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrailingSlash
public TrailingSlash()
remove
public static TrailingSlash remove()
- Create a new
TrailingSlash instance that will remove trailing slashes from all matching request and
rendered output Address instances, if necessary.
append
public static TrailingSlash append()
- Create a new
TrailingSlash instance that will append trailing slashes from all matching request and
rendered output Address instances, if necessary.
withId
public TrailingSlash withId(String id)
- Set the ID of this
TrailingSlash instance.
getId
public String getId()
- Specified by:
getId in interface Rule
Copyright © 2013 OCPsoft. All Rights Reserved.