|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.sentinel.uri.GenericURI.Fragment
public static class GenericURI.Fragment
A class used to parse and output the fragment component of a URI.
Field Summary | |
---|---|
static PercentCodex |
FRAGMENT_CODEX
An encoder that encodes a URI fragment component. |
Constructor Summary | |
---|---|
GenericURI.Fragment()
Construct an empty instance. |
|
GenericURI.Fragment(GenericURI.Fragment src)
Construct a deep copy of the passed instance. |
|
GenericURI.Fragment(String rawFragment)
Construct an instance from the passed, raw string. |
Method Summary | |
---|---|
String |
getFragment()
Get the parsed, decoded fragment string. |
String |
getRaw()
Get the raw, unparsed, un-decoded string used to construct or set the data in this instance. |
boolean |
isEmpty()
Return true if there is no data associated with this instance. |
void |
set(String rawFragment)
Set the data in this instance from the passed raw, encoded string. |
void |
setLiteral(String literal)
Set the data in this instance from the passed literal (i.e., unencoded) string. |
protected void |
setRaw(String raw)
Set the raw string. |
String |
toString()
Output the fragment string as an encoded string suitable for use in a constructed URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PercentCodex FRAGMENT_CODEX
Constructor Detail |
---|
public GenericURI.Fragment()
public GenericURI.Fragment(String rawFragment)
rawFragment
- The encoded, raw fragment component.public GenericURI.Fragment(GenericURI.Fragment src)
src
- The instance to be copied.Method Detail |
---|
public boolean isEmpty()
public String getRaw()
protected void setRaw(String raw)
raw
- The string to set, or null.public String getFragment()
public void set(String rawFragment)
rawFragment
- The raw string.public void setLiteral(String literal)
literal
- The fragment string.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |