public interface FileUploadValidationService extends IValidationService
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_EXTENSIONS_ALLOWED |
static String |
DEFAULT_MAX_FILE_SIZE |
VALIDATE_ID
Modifier and Type | Method and Description |
---|---|
void |
addViolation(String key,
Object... params) |
String[] |
getAllowedExtensions() |
org.apache.wicket.util.lang.Bytes |
getMaxFileSize() |
void |
setAllowedExtensions(String[] extensions) |
void |
validate(org.apache.wicket.markup.html.form.upload.FileUpload upload) |
getValidationResult, validate
static final String DEFAULT_MAX_FILE_SIZE
static final String[] DEFAULT_EXTENSIONS_ALLOWED
void validate(org.apache.wicket.markup.html.form.upload.FileUpload upload) throws ValidationException
ValidationException
String[] getAllowedExtensions()
void setAllowedExtensions(String[] extensions)
org.apache.wicket.util.lang.Bytes getMaxFileSize()
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.