de.smartics.validation.constraints.impl
Class MailServerAvailabilityValidator
java.lang.Object
de.smartics.validation.constraints.impl.MailServerAvailabilityValidator
-
All Implemented Interfaces:
-
javax.validation.ConstraintValidator<
Available,javax.mail.Session>
-
public class MailServerAvailabilityValidator
-
extends
Object
-
implements javax.validation.ConstraintValidator<
Available,javax.mail.Session>
Checks that the annotated resource is availability.
The timout parameter is not used by this implementation.
Method Summary |
void |
initialize(Available constraintAnnotation) |
boolean |
isValid(javax.mail.Session value, javax.validation.ConstraintValidatorContext constraintValidatorContext) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailServerAvailabilityValidator
public MailServerAvailabilityValidator()
initialize
public void initialize(Available constraintAnnotation)
-
-
Specified by:
-
initialize
in interface
javax.validation.ConstraintValidator<Available,javax.mail.Session>
-
isValid
public boolean isValid(javax.mail.Session value,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
-
-
Specified by:
-
isValid
in interface
javax.validation.ConstraintValidator<Available,javax.mail.Session>
-
Copyright © 2009-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.