Class LocalDateParam


  • @Deprecated
    public class LocalDateParam
    extends AbstractParam<org.joda.time.LocalDate>
    Deprecated.
    As of release 2.0.0, will be removed in 3.0.0. Please use Optional instead.
    A parameter encapsulating local date values. All non-parsable values will return a 400 Bad Request response.
    • Constructor Detail

      • LocalDateParam

        public LocalDateParam​(@Nullable
                              String input)
        Deprecated.
      • LocalDateParam

        public LocalDateParam​(@Nullable
                              String input,
                              String parameterName)
        Deprecated.
    • Method Detail

      • parse

        protected org.joda.time.LocalDate parse​(@Nullable
                                                String input)
                                         throws Exception
        Deprecated.
        Description copied from class: AbstractParam
        Given a string representation, parse it and return an instance of the parameter type.
        Specified by:
        parse in class AbstractParam<org.joda.time.LocalDate>
        Parameters:
        input - the raw input
        Returns:
        input, parsed as an instance of T
        Throws:
        Exception - if there is an error parsing the input