public class PathUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
FULLY_QUALIFIED_URL_PREFIXES |
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[] FULLY_QUALIFIED_URL_PREFIXES
public static String normalizePath(String path)
path
- public static String encodePath(String rewrite)
rewrite
- public static String decodePath(String path)
path
- Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.