Package org.jrest4guice.commons.fileupload

Examples of org.jrest4guice.commons.fileupload.MonitoredDiskFileItemFactory


  @Override
  public void readData(HttpServletRequest request, ModelMap params,
      String charset) {
    // 构建带上传进度监视的文件工厂
    MonitoredDiskFileItemFactory factory = new MonitoredDiskFileItemFactory(
        new UploadListener(request));
    // 初始化上传参数
    ServletFileUpload upload = new ServletFileUpload(factory);
    upload.setFileSizeMax(this.fileSizeMax);
    upload.setSizeMax(this.sizeMax);
View Full Code Here

TOP

Related Classes of org.jrest4guice.commons.fileupload.MonitoredDiskFileItemFactory

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.