Package org.vosao.common

Examples of org.vosao.common.UploadException


  private String processPicasaFile(FileItemStream fileItem, byte[] data,
      Map<String, String> parameters) throws UploadException {
    try {
      String albumId = parameters.get("albumId");
      if (StringUtils.isEmpty(albumId)) {
        throw new UploadException(Messages.get("album_not_found",
            albumId));
      }
      getBusiness().getPicasaBusiness().upload(albumId, data,
          fileItem.getName());
      return createMessage("success", Messages.get("photo_uploaded"));
    }
    catch (Exception e) {
      throw new UploadException(e.getMessage());
    }
  }
View Full Code Here


    filterXSS(parameters);
    FormDataEntity formData = saveFormData(form, parameters, files,
        ipAddress);
    String error = sendEmail(formData);
    if (error != null) {
      throw new UploadException(error);
    }
  }
View Full Code Here

TOP

Related Classes of org.vosao.common.UploadException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.