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

com.liberologico.cloudesire.common.validators.ApplicationFileURL Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package com.liberologico.cloudesire.common.validators;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * This is used to validate URL and references to docker images
 */
@Target ( {FIELD} )
@Retention ( RUNTIME )
@Constraint ( validatedBy = ApplicationFileURLValidator.class )
@Documented
public @interface ApplicationFileURL
{
    String message() default "Cannot validate supplied URL";

    Class[] groups() default {};

    Class[] payload() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy