Package io.dropwizard.jersey.params
Class LocalDateParam
- java.lang.Object
-
- io.dropwizard.jersey.params.AbstractParam<org.joda.time.LocalDate>
-
- io.dropwizard.jersey.params.LocalDateParam
-
@Deprecated public class LocalDateParam extends AbstractParam<org.joda.time.LocalDate>
Deprecated.As of release 2.0.0, will be removed in 3.0.0. Please useOptionalinstead.A parameter encapsulating local date values. All non-parsable values will return a400 Bad Requestresponse.
-
-
Constructor Summary
Constructors Constructor Description LocalDateParam(String input)Deprecated.LocalDateParam(String input, String parameterName)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.joda.time.LocalDateparse(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.LocalDate 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.LocalDate>- Parameters:
input- the raw input- Returns:
input, parsed as an instance ofT- Throws:
Exception- if there is an error parsing the input
-
-