public final class RequestParameter extends Parameter
| Modifier and Type | Method and Description |
|---|---|
RequestParameter |
append(RequestParameter appended) |
RequestParameter |
append(String[] appended) |
<M extends Map<String,RequestParameter>> |
appendTo(M map)
Add this parameter to a map.
|
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() |
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArraypublic static RequestParameter create(String name, String value) throws NullPointerException
name - the parameter namevalue - the parameter valueNullPointerException - if the name of the value is nullpublic static RequestParameter create(String name, String raw, String value) throws NullPointerException
name - the parameter namevalue - the parameter valueNullPointerException - if the name of the value is nullpublic static RequestParameter create(String name, String[] value) throws NullPointerException, IllegalArgumentException
name - the parameter namevalue - the parameter valueNullPointerException - if the name of the value is nullIllegalArgumentException - if the value is empty or contains a null componentpublic static RequestParameter create(Map.Entry<String,String[]> entry) throws NullPointerException, IllegalArgumentException
entry - the parameter entryNullPointerException - if the entry is nullIllegalArgumentException - if entry provides a null name or an illegal valuepublic String get(int index)
public int size()
size in interface Collection<String>size in interface List<String>size in class AbstractCollection<String>public String getValue()
public String getRaw(int index)
index - the index of the valuepublic 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 appendTo(M map)
M - the map generic typemap - the map to add topublic 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>Copyright © 2017 eXo Platform SAS. All rights reserved.