@Controller public class DownloadController extends AbstractSecureController
| Modifier and Type | Field and Description |
|---|---|
protected PersistentQueueDAO |
persistentQueueDAO |
protected SearchDAO |
searchDAO
Fulltext search DAO
|
apiCheckUrl| Constructor and Description |
|---|
DownloadController() |
| Modifier and Type | Method and Description |
|---|---|
List<DownloadDetailsDTO> |
getCurrentDownloads()
Retrieves all the downloads that are on the queue
|
String |
occurrenceDownload(DownloadRequestParams requestParams,
String ip,
String apiKey,
String type,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
Add a download to the offline queue
|
isValidKey, shouldPerformOperation, shouldPerformOperation@Inject protected SearchDAO searchDAO
@Inject protected PersistentQueueDAO persistentQueueDAO
@RequestMapping(value="/offline/download/stats") @ResponseBody public List<DownloadDetailsDTO> getCurrentDownloads()
@RequestMapping(value="occurrences/offline/{type}/download*",
method=GET)
public String occurrenceDownload(DownloadRequestParams requestParams,
@RequestParam(value="ip",required=false)
String ip,
@RequestParam(value="apiKey",required=false)
String apiKey,
@PathVariable(value="type")
String type,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
throws Exception
requestParams - ip - apiKey - type - response - request - ExceptionCopyright © 2014. All rights reserved.