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