io.dropwizard.jersey.jsr310.LocalDateTimeParam Maven / Gradle / Ivy
The newest version!
package io.dropwizard.jersey.jsr310;
import io.dropwizard.jersey.params.AbstractParam;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.time.LocalDateTime;
/**
* A parameter encapsulating date/time values. All non-parsable values will return a {@code 400 Bad
* Request} response.
*
* @see LocalDateTime
*/
public class LocalDateTimeParam extends AbstractParam {
public LocalDateTimeParam(@Nullable final String input) {
super(input);
}
@Override
protected LocalDateTime parse(@Nullable final String input) throws Exception {
return LocalDateTime.parse(input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy