|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talend.esb.locator.NodePath
public class NodePath
Representation of ZooKeeper node path. The path is always absolute. As path segments obviously cannot contain the path separator ("/") raw paths are always encoded.
| Field Summary | |
|---|---|
static char |
SEPARATOR
|
| Constructor Summary | |
|---|---|
NodePath(String... pathSegments)
Create an NodePath that consists of the given path segments. |
|
| Method Summary | |
|---|---|
NodePath |
child(String childNodeName)
Create a NodePath, which is a child of this one. |
static String |
decode(String encoded)
Decode the given String. |
static String |
encode(String raw)
Encode the given String. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
String |
toString()
Encoded String representation of this NodePath. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char SEPARATOR
| Constructor Detail |
|---|
public NodePath(String... pathSegments)
NodePath that consists of the given path segments.
pathSegments - the sequence of path segments the NodePath consists of, must not be null or empty| Method Detail |
|---|
public NodePath child(String childNodeName)
NodePath, which is a child of this one.
childNodeName - name of the child node, must not be nullpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
String representation of this NodePath.
toString in class ObjectString representationpublic static String encode(String raw)
String. All occurrences of "/" are mapped to "%2A" and
all occurrences of "%" to "%2F".
raw - the String to encode, must not be null
decode(String)public static String decode(String encoded)
String. It is the inverse operation of encode(String).
For all Strings s, decode(encode(s)).equals(s) should
be true.
encoded - the String to decode, must not be null
encode(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||