Class RestUtils


  • public abstract class RestUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RestUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertNameToPropertyName​(java.lang.String name)
      Convert a column name with underscores to the corresponding property name using "camel case".
      static void setBeanProperties​(java.lang.Object bean, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> properties)
      Use Spring's PropertyAccessorFactory to set values on the specified bean.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestUtils

        public RestUtils()
    • Method Detail

      • convertNameToPropertyName

        public static java.lang.String convertNameToPropertyName​(java.lang.String name)
        Convert a column name with underscores to the corresponding property name using "camel case". A name like "customer_number" would match a "customerNumber" property name.
        Parameters:
        name - the column name to be converted
        Returns:
        the name using "camel case"