|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.sentinel.uri.GenericURI.Path
public static class GenericURI.Path
A class used to parse and store path segments of the path component of a URI.
Field Summary | |
---|---|
static PercentCodex |
PATH_CODEX
An encoder that encodes a path segment. |
Constructor Summary | |
---|---|
GenericURI.Path()
Construct an empty instance. |
|
GenericURI.Path(GenericURI.Path src)
Construct a deep-copy of the passed source instance. |
|
GenericURI.Path(String... pathComponents)
Construct an instance from the passed segments. |
|
GenericURI.Path(String path)
Construct an instance from an unparsed, encoded path component of a URI. |
Method Summary | |
---|---|
void |
append(GenericURI.Path path)
Append the passed information as segments in the path represented by this instance. |
void |
appendComponents(String... pathComponents)
Append the passed literal strings as segments of this path. |
List<String> |
components()
Return a List of path segments. |
String |
getRaw()
Get the raw, unparsed, encoded string used to construct or set this instance, if any. |
boolean |
isAbsolute()
Return true if the path is absolute (i.e., starts with '/'). |
boolean |
isEmpty()
Return if the path is empty or not. |
void |
set(String path)
Set the path information from the passed, raw, encoded path component string. |
void |
setAbsolute()
Set the instance to be an absolute path. |
protected void |
setRaw(String rawPath)
Set the raw string. |
void |
setRelative()
Set the instance to be a relative path. |
String |
toString()
Output an encoded String for use in a URI as the path component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PercentCodex PATH_CODEX
Constructor Detail |
---|
public GenericURI.Path()
public GenericURI.Path(String... pathComponents)
pathComponents
- The path segments.public GenericURI.Path(String path)
path
- The raw path string.public GenericURI.Path(GenericURI.Path src)
src
- The source instance to be copied.Method Detail |
---|
public boolean isEmpty()
public boolean isAbsolute()
public void setRelative()
public void setAbsolute()
public List<String> components()
public void set(String path)
path
- The raw string.public void append(GenericURI.Path path)
path
- The instance whose segments are to be appended to this instance.public void appendComponents(String... pathComponents)
pathComponents
- The segments to append.public String toString()
toString
in class Object
public String getRaw()
protected void setRaw(String rawPath)
rawPath
- The string to set, or null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |