rewrite-config-servlet 2.0.0.Beta3

org.ocpsoft.rewrite.servlet.config.rule
Class TrailingSlash

java.lang.Object
  extended by 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 Summary
TrailingSlash()
           
 
Method Summary
static TrailingSlash append()
          Create a new TrailingSlash instance that will append trailing slashes from all matching request and rendered output Address instances, if necessary.
 String getId()
           
static TrailingSlash remove()
          Create a new TrailingSlash instance that will remove trailing slashes from all matching request and rendered output Address instances, if necessary.
 TrailingSlash withId(String id)
          Set the ID of this TrailingSlash instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.config.Condition
evaluate
 
Methods inherited from interface org.ocpsoft.rewrite.config.Operation
perform
 

Constructor Detail

TrailingSlash

public TrailingSlash()
Method Detail

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

rewrite-config-servlet 2.0.0.Beta3

Copyright © 2013 OCPsoft. All Rights Reserved.