Package org.apache.curator.utils
Class PathUtils
- java.lang.Object
-
- org.apache.curator.utils.PathUtils
-
public class PathUtils extends java.lang.ObjectThis class is copied from Apache ZooKeeper. The original class is not exported by ZooKeeper bundle and thus it can't be used in OSGi. See issue: https://issues.apache.org/jira/browse/ZOOKEEPER-1627 A temporary workaround till the issue is resolved is to keep a copy of this class locally.
-
-
Constructor Summary
Constructors Constructor Description PathUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringvalidatePath(java.lang.String path)Validate the provided znode path stringstatic voidvalidatePath(java.lang.String path, boolean isSequential)validate the provided znode path string
-
-
-
Method Detail
-
validatePath
public static void validatePath(java.lang.String path, boolean isSequential) throws java.lang.IllegalArgumentExceptionvalidate the provided znode path string- Parameters:
path- znode path stringisSequential- if the path is being created with a sequential flag- Throws:
java.lang.IllegalArgumentException- if the path is invalid
-
validatePath
public static java.lang.String validatePath(java.lang.String path) throws java.lang.IllegalArgumentExceptionValidate the provided znode path string- Parameters:
path- znode path string- Returns:
- The given path if it was valid, for fluent chaining
- Throws:
java.lang.IllegalArgumentException- if the path is invalid
-
-