public abstract class AbstractFileDownloadAction extends FileAction {
public AjxpAnswer execute(FileDriver driver, HttpServletRequest request) {
String fileStr = request.getParameter(getFileParameter());
if (fileStr == null) {
throw new AjxpDriverException(
"A file to download needs to be provided.");
}
File file = new File(driver.getBasePath() + fileStr);
return new AxpBasicDownloadAnswer(file);
}