Package io.dropwizard.validation
Annotation Type PortRange
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,TYPE_USE}) @Retention(RUNTIME) @Constraint(validatedBy=PortRangeValidator.class) @Documented public @interface PortRange
A constraint that allows one to specify a port range, but still allow 0 as the port value to indicate dynamically allocated ports.