org.ocpsoft.rewrite.faces
Class URLDuplicatePathCanonicalizer
java.lang.Object
org.ocpsoft.rewrite.faces.URLDuplicatePathCanonicalizer
public class URLDuplicatePathCanonicalizer
- extends Object
- Author:
- Lincoln Baxter, III
|
Method Summary |
String |
canonicalize(String url)
Canonicalize a given URL, replacing relative path structures with the condensed path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLDuplicatePathCanonicalizer
public URLDuplicatePathCanonicalizer()
canonicalize
public String canonicalize(String url)
- Canonicalize a given URL, replacing relative path structures with the condensed path. (Eg. /xxxx/../xxxx/ =>
/xxxx/)
- Returns:
- Return the canonicalized URL. If the URL requires no canonicalization, return the original unmodified URL.
Copyright © 2013 OCPsoft. All Rights Reserved.