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