Package io.dropwizard.jersey.params
Class DateTimeParam
- java.lang.Object
-
- io.dropwizard.jersey.params.AbstractParam<org.joda.time.DateTime>
-
- io.dropwizard.jersey.params.DateTimeParam
-
@Deprecated public class DateTimeParam extends AbstractParam<org.joda.time.DateTime>
Deprecated.As of release 2.0.0, will be removed in 3.0.0. Please useOptionalinstead.A parameter encapsulating date/time values. All non-parsable values will return a400 Bad Requestresponse. All values returned are in UTC.
-
-
Constructor Summary
Constructors Constructor Description DateTimeParam(String input)Deprecated.DateTimeParam(String input, String parameterName)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.joda.time.DateTimeparse(String input)Deprecated.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
-
-
-
-
Method Detail
-
parse
protected org.joda.time.DateTime parse(@Nullable String input) throws ExceptionDeprecated.Description copied from class:AbstractParamGiven a string representation, parse it and return an instance of the parameter type.- Specified by:
parsein classAbstractParam<org.joda.time.DateTime>- Parameters:
input- the raw input- Returns:
input, parsed as an instance ofT- Throws:
Exception- if there is an error parsing the input
-
-