|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.sentinel.uri.GenericURI.Query
com.novell.sentinel.uri.GenericURI.FormQuery
public static class GenericURI.FormQuery
A class used to parse, store, and output information from the query component of a URI that is interpreted as of the media type "application/x-www-form-urlencoded".
| Field Summary | |
|---|---|
static PercentCodex |
FORM_QUERY_CODEX
An encoder that encodes a query item (a name or a value in the "application/x-www-form-urlencoded" format). |
| Fields inherited from class com.novell.sentinel.uri.GenericURI.Query |
|---|
QUERY_CODEX |
| Constructor Summary | |
|---|---|
GenericURI.FormQuery()
Construct an empty instance. |
|
GenericURI.FormQuery(GenericURI.FormQuery src)
Construct a deep copy of the passed instance. |
|
GenericURI.FormQuery(String queryString)
Construct an instance based on the passed raw string. |
|
| Method Summary | |
|---|---|
protected static String |
decode(String string)
Decode a name or value from an encoded, raw string. |
protected static CharSequence |
encode(String string)
Encode a name or value. |
boolean |
isEmpty()
Return true if there is no data associated with this instance. |
Map<String,List<String>> |
items()
Return the name/value pairs in this instance. |
protected void |
parse(String queryString)
|
void |
setItem(String key,
Collection<String> values)
Set a query item to the passed value(s). |
void |
setItem(String key,
Iterable<String> values)
Set a query item to the passed value(s). |
void |
setItem(String key,
String... values)
Set a query item to the passed value(s). |
String |
toString()
|
| Methods inherited from class com.novell.sentinel.uri.GenericURI.Query |
|---|
getQuery, getRaw, set, setQuery, setRaw |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PercentCodex FORM_QUERY_CODEX
Note that this encoder should not be used for query strings that are not in "application/x-www-form-urlencoded" format.
| Constructor Detail |
|---|
public GenericURI.FormQuery()
public GenericURI.FormQuery(String queryString)
queryString - The raw string.public GenericURI.FormQuery(GenericURI.FormQuery src)
src - The instance to be copied.| Method Detail |
|---|
public boolean isEmpty()
GenericURI.Query
isEmpty in class GenericURI.Querypublic Map<String,List<String>> items()
public void setItem(String key,
String... values)
key - The name of the query item.values - The value(s) to set.
public void setItem(String key,
Collection<String> values)
key - The name of the query item.values - The value(s) to set.
public void setItem(String key,
Iterable<String> values)
key - The name of the query item.values - The value(s) to set.public String toString()
toString in class Objectprotected static CharSequence encode(String string)
string - The literal string to encode.
protected static String decode(String string)
string - The raw string.
protected void parse(String queryString)
parse in class GenericURI.Query
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||