Package io.dropwizard.jersey.jsr310
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 a400 Bad Requestresponse.- See Also:
YearMonth
-
-
Constructor Summary
Constructors Constructor Description YearMonthParam(@Nullable String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected YearMonthparse(@Nullable String input)Given a string representation, parse it and return an instance of the parameter type.-
Methods inherited from class io.dropwizard.jersey.params.AbstractParam
equals, error, errorMessage, generateErrorMessage, get, getErrorStatus, hashCode, mediaType, toString
-
-
-
-
Constructor Detail
-
YearMonthParam
public YearMonthParam(@Nullable String input)
-
-
Method Detail
-
parse
protected YearMonth parse(@Nullable String input) throws Exception
Description copied from class:AbstractParamGiven a string representation, parse it and return an instance of the parameter type.- Specified by:
parsein classAbstractParam<YearMonth>- Parameters:
input- the raw input- Returns:
input, parsed as an instance ofT- Throws:
Exception- if there is an error parsing the input
-
-