Class YearMonthParam

java.lang.Object
io.dropwizard.jersey.params.AbstractParam<YearMonth>
io.dropwizard.jersey.jsr310.YearMonthParam

public class YearMonthParam extends AbstractParam<YearMonth>
A parameter encapsulating year and month values. All non-parsable values will return a 400 Bad Request response.
See Also:
  • Constructor Details

    • YearMonthParam

      public YearMonthParam(@Nullable String input)
  • Method Details

    • parse

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