public final class BeanUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
convertMap(Map<String,String[]> mapInput)
Convert map by casifying parameters names.
|
static String |
convertUnderscores(String strSource)
Remove underscore and set the next letter in caps
|
static void |
init()
BeanUtil initialization, considering Lutèce availables locales and date format properties
|
static void |
populate(Object bean,
javax.servlet.http.HttpServletRequest request)
Populate a bean using parameters in http request
|
static void |
populate(Object bean,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Populate a bean using parameters in http request, with locale date format controls
|
public static void init()
public static void populate(Object bean, javax.servlet.http.HttpServletRequest request)
bean
- request
- public static void populate(Object bean, javax.servlet.http.HttpServletRequest request, Locale locale)
bean
- bean to populaterequest
- http requestlocale
- public static Map<String,Object> convertMap(Map<String,String[]> mapInput)
mapInput
- The input mapCopyright © 2020 City of Paris. All rights reserved.