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
  • Constructor Details

    • TrailingSlash

      public TrailingSlash()
  • Method Details

    • 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
    • toString

      public abstract String toString()
      Overrides:
      toString in class Object