Class ToDateExpander

  • All Implemented Interfaces:
    feign.Param.Expander

    public class ToDateExpander
    extends Object
    implements feign.Param.Expander
    Parameters annotated with Param expand based on their toString(). Custom expander ToDateExpander can be specified to convert java.sql.Date to java.util.Date before expanding it into a string using the expand method. If the result is null or an empty string, the value is omitted.
    • Constructor Detail

      • ToDateExpander

        public ToDateExpander()
    • Method Detail

      • expand

        public String expand​(Object value)
        Specified by:
        expand in interface feign.Param.Expander