Class BeanUtil


  • public final class BeanUtil
    extends Object
    Bean Utils
    • Method Detail

      • init

        public static void init()
        BeanUtil initialization, considering Lutèce availables locales and date format properties
      • populate

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

        public 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
        Parameters:
        bean - bean to populate
        request - http request
        locale -
      • convertMap

        public static Map<String,​Object> convertMap​(Map<String,​String[]> 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