Package io.dropwizard.jersey.jsr310
Class LocalTimeParam
- java.lang.Object
-
- io.dropwizard.jersey.params.AbstractParam<LocalTime>
-
- io.dropwizard.jersey.jsr310.LocalTimeParam
-
public class LocalTimeParam extends AbstractParam<LocalTime>
A parameter encapsulating time values. All non-parsable values will return a400 Bad Request
response.- See Also:
LocalTime
-
-
Constructor Summary
Constructors Constructor Description LocalTimeParam(@Nullable String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LocalTime
parse(@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
-
LocalTimeParam
public LocalTimeParam(@Nullable String input)
-
-
Method Detail
-
parse
protected LocalTime 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 classAbstractParam<LocalTime>
- Parameters:
input
- the raw input- Returns:
input
, parsed as an instance ofT
- Throws:
Exception
- if there is an error parsing the input
-
-