
io.dropwizard.java8.jersey.params.ZoneIdParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-java8 Show documentation
Show all versions of dropwizard-java8 Show documentation
Addon bundle for Dropwizard to support Java 8 features
The newest version!
package io.dropwizard.java8.jersey.params;
import io.dropwizard.jersey.params.AbstractParam;
import java.time.ZoneId;
/**
* A parameter encapsulating time-zone IDs, such as Europe/Paris.
* All non-parsable values will return a {@code 400 Bad Request} response.
*
* @see java.time.ZoneId
*/
public class ZoneIdParam extends AbstractParam {
public ZoneIdParam(final String input) {
super(input);
}
@Override
protected ZoneId parse(final String input) throws Exception {
return ZoneId.of(input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy