|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<String>
juzu.request.RequestParameter
public final class RequestParameter
A unmodifiable request parameter, it provides access to the parameter name and the parameter values. The parameter name and values are decoded according, the request parameter provides access to the raw parameter x-www-formurl-encoded values when they are available.
| Method Summary | ||
|---|---|---|
|
addTo(M map)
Add this parameter to a map. |
|
RequestParameter |
append(RequestParameter appended)
|
|
RequestParameter |
append(String[] appended)
|
|
static RequestParameter |
create(Map.Entry<String,String[]> entry)
Create new parameter. |
|
static RequestParameter |
create(String name,
String value)
Create new parameter. |
|
static RequestParameter |
create(String name,
String[] value)
Create new parameter. |
|
static RequestParameter |
create(String name,
String raw,
String value)
Create new parameter. |
|
boolean |
equals(Object obj)
|
|
String |
get(int index)
|
|
String |
getName()
|
|
String |
getRaw(int index)
Returns the value at specified index. |
|
String |
getValue()
|
|
int |
size()
|
|
String[] |
toArray()
Clone the value and returns it. |
|
String |
toString()
|
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray |
| Method Detail |
|---|
public static RequestParameter create(String name,
String value)
throws NullPointerException
name - the parameter namevalue - the parameter value
NullPointerException - if the name of the value is null
public static RequestParameter create(String name,
String raw,
String value)
throws NullPointerException
name - the parameter namevalue - the parameter value
NullPointerException - if the name of the value is null
public static RequestParameter create(String name,
String[] value)
throws NullPointerException,
IllegalArgumentException
name - the parameter namevalue - the parameter value
NullPointerException - if the name of the value is null
IllegalArgumentException - if the value is empty or contains a null component
public static RequestParameter create(Map.Entry<String,String[]> entry)
throws NullPointerException,
IllegalArgumentException
entry - the parameter entry
NullPointerException - if the entry is null
IllegalArgumentException - if entry provides a null name or an illegal valuepublic String get(int index)
get in interface List<String>get in class AbstractList<String>public int size()
size in interface Collection<String>size in interface List<String>size in class AbstractCollection<String>public String getName()
public String getValue()
public String getRaw(int index)
index - the index of the value
public String[] toArray()
toArray in interface Collection<String>toArray in interface List<String>toArray in class AbstractCollection<String>String[]public <M extends Map<String,RequestParameter>> M addTo(M map)
M - the map generic typemap - the map to add to
public boolean equals(Object obj)
equals in interface Collection<String>equals in interface List<String>equals in class AbstractList<String>public RequestParameter append(RequestParameter appended)
public RequestParameter append(String[] appended)
public String toString()
toString in class AbstractCollection<String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||