Class DateTimeParam


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

      • DateTimeParam

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

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

      • parse

        protected org.joda.time.DateTime 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.DateTime>
        Parameters:
        input - the raw input
        Returns:
        input, parsed as an instance of T
        Throws:
        Exception - if there is an error parsing the input