Package com.bhle.access.download

Examples of com.bhle.access.download.OfflineDownloadResponse


    }
    String email = parts[0];
    String filename = parts[1];

    try {
      final OfflineDownloadResponse response = downloadResponseFetcher
          .fetch(email, filename);
      return Response
          .ok(new StreamingOutput() {
            @Override
            public void write(OutputStream output)
                throws IOException, WebApplicationException {
              IOUtils.copy(response.getBlob().openInputStream(),
                  output);
            }
          })
          .header("Content-Disposition",
              "attachment; filename=" + filename).build();
View Full Code Here

TOP

Related Classes of com.bhle.access.download.OfflineDownloadResponse

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.