Package org.platformlayer.ops.OneTimeDownloads

Examples of org.platformlayer.ops.OneTimeDownloads.Download


  OneTimeDownloads oneTimeDownloads;

  @GET
  @Path("blob/{blobId}")
  public Response downloadBlob(@PathParam("blobId") String blobId) {
    Download download = oneTimeDownloads.get(blobId);
    if (download == null) {
      throw new WebApplicationException(Status.NOT_FOUND);
    }

    String responseData = download.getContent();
    String contentType = download.getContentType();

    ResponseBuilder rBuild = Response.ok(responseData, contentType);
    return rBuild.build();
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.OneTimeDownloads.Download

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.