public class FileUploadValidator extends Object implements javax.validation.ConstraintValidator<FileUpload,FormUpload>
FormUpload
matches the restrictions given by a FileUpload
.Modifier and Type | Field and Description |
---|---|
protected FileUpload |
file |
Constructor and Description |
---|
FileUploadValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(FileUpload file) |
boolean |
isValid(FormUpload upload,
javax.validation.ConstraintValidatorContext constraintContext) |
protected FileUpload file
public void initialize(FileUpload file)
initialize
in interface javax.validation.ConstraintValidator<FileUpload,FormUpload>
public boolean isValid(FormUpload upload, javax.validation.ConstraintValidatorContext constraintContext)
isValid
in interface javax.validation.ConstraintValidator<FileUpload,FormUpload>
Copyright © 2011–2023 aiticon GmbH. All rights reserved.