Package org.aktin.broker.rest
Class DownloadEndpoint
java.lang.Object
org.aktin.broker.rest.DownloadEndpoint
@Path("/broker/download")
public class DownloadEndpoint
extends Object
Provide temporary download links which expire after a short period of time or number of downloads.
- Author:
- R.W.Majeed
-
Constructor Summary
Constructors Constructor Description DownloadEndpoint() -
Method Summary
-
Constructor Details
-
DownloadEndpoint
public DownloadEndpoint()
-
-
Method Details
-
download
@GET @Path("{id}") public javax.ws.rs.core.Response download(@PathParam("id") String id) throws IOExceptionRetrieve a download. This method is not authenticated on purpose, as the download id can not be guessed and authentication was already required for creation of the download link.- Parameters:
id- download id- Returns:
- download content stream
- Throws:
IOException- IO error
-