public interface ParameterizedRequest
| Modifier and Type | Method and Description |
|---|---|
default String |
get(String key)
Get parameter's value by key
|
default List<String> |
getList(String key)
Get a list of strings of values
|
<T> List<T> |
getList(String key,
Class<T> type)
Get a list of values
|
String |
getOrDefault(String key,
String def)
Get parameter's value by key or return default value
|
default String get(String key)
key - a string represents for keyString getOrDefault(String key, String def)
key - a string represents for keydef - a default value to be returned when key is not found<T> List<T> getList(String key, Class<T> type) throws UnsupportedOperationException
T - type of valuekey - a string represents for keytype - class of valueUnsupportedOperationException - if type is not supportedCopyright © 2018. All rights reserved.