Class ZonedDateTimeParam


  • public class ZonedDateTimeParam
    extends AbstractParam<ZonedDateTime>
    A parameter encapsulating date/time values containing timezone information. All non-parsable values will return a 400 Bad Request response.
    See Also:
    ZonedDateTime
    • Constructor Detail

      • ZonedDateTimeParam

        public ZonedDateTimeParam​(@Nullable String input)
    • Method Detail

      • parse

        protected ZonedDateTime parse​(@Nullable String input)
                               throws Exception
        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<ZonedDateTime>
        Parameters:
        input - the raw input
        Returns:
        input, parsed as an instance of T
        Throws:
        Exception - if there is an error parsing the input