de.smartics.validation.constraints.impl
Class UrlAvailabilityValidator

java.lang.Object
  extended by de.smartics.validation.constraints.impl.UrlAvailabilityValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator< Available, URL>

public class UrlAvailabilityValidator
     
     
extends Object
implements javax.validation.ConstraintValidator< Available, URL>

Checks that the annotated resource is availability.


Constructor Summary
UrlAvailabilityValidator()
           
 
Method Summary
 void initialize(Available constraintAnnotation)
           
 boolean isValid(URL value, javax.validation.ConstraintValidatorContext constraintValidatorContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlAvailabilityValidator

public UrlAvailabilityValidator()
Method Detail

initialize

public void initialize(Available constraintAnnotation)
Specified by:
initialize in interface javax.validation.ConstraintValidator<Available,URL>

isValid

public boolean isValid(URL value,
                       javax.validation.ConstraintValidatorContext constraintValidatorContext)
Specified by:
isValid in interface javax.validation.ConstraintValidator<Available,URL>


Copyright © 2009-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.