public class PathUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
decodePath(String path)
Decode the url:
split url in url parts on '/'
url decode the url parts with utf-8
jcr encode the decoded node name using utf-8
append last url part twice for handle in document model
Always return at least a single slash
|
static String |
encodePath(String rewrite)
Encode the url:
split url in url parts on '/'
decode the jcr node name
url encode the decoded name using utf-8
append '.html' to the last url part
|
static String |
normalizePath(String path)
remove trailing and leading slashes
|
public static String normalizePath(String path)
path
- public static String encodePath(String rewrite)
rewrite
- public static String decodePath(String path)
path
- Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.