Class TrailingSlash
java.lang.Object
org.ocpsoft.rewrite.servlet.config.rule.TrailingSlash
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrailingSlashappend()Create a newTrailingSlashinstance that will append trailing slashes from all matching request and rendered outputAddressinstances, if necessary.getId()static TrailingSlashremove()Create a newTrailingSlashinstance that will remove trailing slashes from all matching request and rendered outputAddressinstances, if necessary.abstract StringtoString()Set the ID of thisTrailingSlashinstance.
-
Constructor Details
-
TrailingSlash
public TrailingSlash()
-
-
Method Details
-
remove
Create a newTrailingSlashinstance that will remove trailing slashes from all matching request and rendered outputAddressinstances, if necessary. -
append
Create a newTrailingSlashinstance that will append trailing slashes from all matching request and rendered outputAddressinstances, if necessary. -
withId
Set the ID of thisTrailingSlashinstance. -
getId
-
toString
-