Package br.com.caelum.vraptor.observer.download

Examples of br.com.caelum.vraptor.observer.download.ByteArrayDownload


  public void setExporter(ReportExporter exporter) {
    this.exporter = exporter;
  }

  public void write(HttpServletResponse response) throws IOException {
    ByteArrayDownload download = new ByteArrayDownload(getContent(), getContentType(), getFileName(), doDownload);
    logger.debug("Generating report " + getFileName() + ", Content-Type: " + getContentType());
    download.write(response);
  }
View Full Code Here


    this.file.add(filename, reports, format);
    return this;
  }
 
  public void write(HttpServletResponse response) throws IOException {
    new ByteArrayDownload(getContent(), file.getContentType(), file.getName(), true).write(response);
  }
View Full Code Here

    }
    return this;
  }

  public void write(HttpServletResponse response) throws IOException {
    new ByteArrayDownload(getContent(), getContentType(), getFileName(), doDownload).write(response);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.observer.download.ByteArrayDownload

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.