fr.paris.lutece.util.bean
Class BeanUtil

java.lang.Object
  extended by fr.paris.lutece.util.bean.BeanUtil

public final class BeanUtil
extends Object

Bean Utils


Method Summary
static Map<String,Object> convertMap(Map<String,Object> mapInput)
          Convert map by casifying parameters names.
static String convertUnderscores(String strSource)
          Remove underscore and set the next letter in caps
static void populate(Object bean, javax.servlet.http.HttpServletRequest request)
          Populate a bean using parameters in http request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

populate

public static void populate(Object bean,
                            javax.servlet.http.HttpServletRequest request)
Populate a bean using parameters in http request

Parameters:
bean - bean to populate
request - http request

convertMap

public static Map<String,Object> convertMap(Map<String,Object> mapInput)
Convert map by casifying parameters names.

Parameters:
mapInput - The input map
Returns:
The output map

convertUnderscores

public static String convertUnderscores(String strSource)
Remove underscore and set the next letter in caps

Parameters:
strSource - The source
Returns:
The converted string


Copyright © 2014 Mairie de Paris. All Rights Reserved.