io.dropwizard.jersey.params.LocalDateParam Maven / Gradle / Ivy
package io.dropwizard.jersey.params;
import org.joda.time.LocalDate;
/**
* A parameter encapsulating local date values. All non-parsable values will return a {@code 400 Bad
* Request} response.
*/
public class LocalDateParam extends AbstractParam {
public LocalDateParam(String input) {
super(input);
}
@Override
protected LocalDate parse(String input) throws Exception {
return new LocalDate(input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy