rewrite-impl-servlet 1.0.3.Final

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

java.lang.Object
  extended by 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

Field Summary
protected  Condition condition
           
protected  Operation operation
           
 
Constructor Summary
TrailingSlash()
           
 
Method Summary
static TrailingSlash append()
          Return a new TrailingSlash instance that will append trailing slashes from all matching request and rendered output URLs, if necessary.
 java.lang.String getId()
           
 TrailingSlash performInbound(Operation operation)
           
static TrailingSlash remove()
          Return a new TrailingSlash instance that will remove trailing slashes from all matching request and rendered output URLs, if necessary.
 TrailingSlash when(Condition condition)
           
 TrailingSlash withId(java.lang.String id)
          Set the ID of this TrailingSlash.
 
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.Rule
evaluate, perform
 

Field Detail

operation

protected Operation operation

condition

protected Condition condition
Constructor Detail

TrailingSlash

public TrailingSlash()
Method Detail

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.


rewrite-impl-servlet 1.0.3.Final

Copyright © 2012 OCPsoft. All Rights Reserved.