Package io.dropwizard.jersey.jsr310
Class ZoneIdParam
- java.lang.Object
-
- io.dropwizard.jersey.params.AbstractParam<ZoneId>
-
- io.dropwizard.jersey.jsr310.ZoneIdParam
-
public class ZoneIdParam extends AbstractParam<ZoneId>
A parameter encapsulating time-zone IDs, such as Europe/Paris. All non-parsable values will return a400 Bad Requestresponse.- See Also:
ZoneId
-
-
Constructor Summary
Constructors Constructor Description ZoneIdParam(@Nullable String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ZoneIdparse(@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, get, getErrorStatus, hashCode, mediaType, toString
-
-
-
-
Constructor Detail
-
ZoneIdParam
public ZoneIdParam(@Nullable String input)
-
-
Method Detail
-
parse
protected ZoneId 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<ZoneId>- Parameters:
input- the raw input- Returns:
input, parsed as an instance ofT- Throws:
Exception- if there is an error parsing the input
-
-