org.loom.interceptor
Class DefaultImageValidationInterceptor

java.lang.Object
  extended by org.loom.interceptor.FileValidationInterceptor
      extended by org.loom.interceptor.AbstractImageValidationInterceptor
          extended by org.loom.interceptor.DefaultImageValidationInterceptor
All Implemented Interfaces:
Interceptor, ValidateInterceptor

public class DefaultImageValidationInterceptor
extends AbstractImageValidationInterceptor

Default image validator instance


Field Summary
 
Fields inherited from class org.loom.interceptor.FileValidationInterceptor
allowedFormats, maxFileSize, parameterName
 
Constructor Summary
DefaultImageValidationInterceptor()
           
 
Method Summary
protected  ImageData getImageData(FileParameter fileParam)
           
 
Methods inherited from class org.loom.interceptor.AbstractImageValidationInterceptor
getAllowedFormats, getMaxFileSize, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getParameterName, setAllowedFormats, setAllowedFormats, setMaxFileSize, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParameterName, toString, validateParameterExtensionPoint
 
Methods inherited from class org.loom.interceptor.FileValidationInterceptor
beforeValidate, validateParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultImageValidationInterceptor

public DefaultImageValidationInterceptor()
Method Detail

getImageData

protected ImageData getImageData(FileParameter fileParam)
Specified by:
getImageData in class AbstractImageValidationInterceptor
Returns:
the image data of the uploaded file, null if the file is not valid