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

io.dropwizard.jersey.jsr310.ZonedDateTimeParam 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.ZonedDateTime;

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy