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

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

There is a newer version: 5.0.0-rc.1
Show newest version
package io.dropwizard.jersey.jsr310;

import io.dropwizard.jersey.params.AbstractParam;

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(final String input) {
        super(input);
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy