All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.jersey.jsr310.LocalDateParam Maven / Gradle / Ivy

package io.dropwizard.jersey.jsr310;

import io.dropwizard.jersey.params.AbstractParam;
import org.checkerframework.checker.nullness.qual.Nullable;

import java.time.LocalDate;

/**
 * A parameter encapsulating date values. All non-parsable values will return a {@code 400 Bad
 * Request} response.
 *
 * @see LocalDate
 */
public class LocalDateParam extends AbstractParam {
    public LocalDateParam(@Nullable final String input) {
        super(input);
    }

    @Override
    protected LocalDate parse(@Nullable final String input) throws Exception {
        return LocalDate.parse(input);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy