org.ops4j.pax.web.extender.war.internal.util
Class Path

java.lang.Object
  extended by org.ops4j.pax.web.extender.war.internal.util.Path

public class Path
extends Object

Divers utilities related to request paths (copy of the same class form Pax Web).

Since:
0.3.0
Author:
Alin Dreghiciu

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

normalizeResourcePath

public 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.

Parameters:
path - path to normalize
Returns:
normalized path or the original path if there is nothing to be replaced.


Copyright © 2006-2010 OPS4J - Open Participation Software for Java. All Rights Reserved.