@Path(value="/download") @RolesAllowed(value="") public class DownloadAPI extends Object
| Constructor and Description |
|---|
DownloadAPI() |
@GET
public javax.ws.rs.core.Response get(@QueryParam(value="f")
String file)
throws IOException
file - name of the file to download.Response with the InputStream to the file.IOException - if it's not possible to open the InputStream to the
file.Copyright © 2017. All rights reserved.