public class Path extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
normalizePattern(String pattern)
Normalizes a pattern = prepends the path with slash (/) if the path does
not start with a slash.
|
static String[] |
normalizePatterns(String[] urlPatterns)
Normalize an array of patterns.
|
static String |
normalizeResourcePath(String path)
Normalize the path for accesing a resource, meaning that will replace
consecutive slashes and will remove a leading slash if present.
|
public static String normalizeResourcePath(String path)
path - path to normalizepublic static String[] normalizePatterns(String[] urlPatterns)
urlPatterns - to mormalizeCopyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.