Package io.dropwizard.jersey.jsr310
Class YearParam
A parameter encapsulating year values. All non-parsable values will return a
400 Bad
Request response.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.dropwizard.jersey.params.AbstractParam
equals, error, errorMessage, generateErrorMessage, get, getErrorStatus, hashCode, mediaType, toString
-
Constructor Details
-
YearParam
-
-
Method Details
-
parse
Description copied from class:AbstractParamGiven a string representation, parse it and return an instance of the parameter type.- Specified by:
parsein classAbstractParam<Year>- Parameters:
input- the raw input- Returns:
input, parsed as an instance ofT- Throws:
Exception- if there is an error parsing the input
-