Class BeanQueryMapEncoder

  • All Implemented Interfaces:
    QueryMapEncoder

    public class BeanQueryMapEncoder
    extends java.lang.Object
    implements QueryMapEncoder
    the query map will be generated using java beans accessible getter property as query parameter names. eg: "/uri?name={name}&number={number}" order of included query parameters not guaranteed, and as usual, if any value is null, it will be left out
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> encode​(java.lang.Object object)
      Encodes the given object into a query map.
      • Methods inherited from class java.lang.Object

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

      • BeanQueryMapEncoder

        public BeanQueryMapEncoder()
    • Method Detail

      • encode

        public java.util.Map<java.lang.String,​java.lang.Object> encode​(java.lang.Object object)
                                                                      throws EncodeException
        Description copied from interface: QueryMapEncoder
        Encodes the given object into a query map.
        Specified by:
        encode in interface QueryMapEncoder
        Parameters:
        object - the object to encode
        Returns:
        the map represented by the object
        Throws:
        EncodeException