T - public class ParamExtractor<T> extends Object
| Constructor and Description |
|---|
ParamExtractor(Map<Object,T> map) |
ParamExtractor(Map map,
String messageTemplate) |
| Modifier and Type | Method and Description |
|---|---|
<T> ParamExtractor<T> |
fromRequest()
New RequiredParamMapper from the current request body.
|
T |
get(Object key)
Gets the parameter, throws a ClientException 400 error with the message template if the parameter
is empty.
|
public ParamExtractor(Map<Object,T> map)
public ParamExtractor(Map map, String messageTemplate)
map - messageTemplate - - Formatted using MessageFormat use {0} for the parameter name.public <T> ParamExtractor<T> fromRequest()
T - Copyright © 2016. All rights reserved.