Class DownloadService
java.lang.Object
org.deltava.service.WebService
org.deltava.service.DownloadService
- Direct Known Subclasses:
PFPXScheduleService
,RawTrackService
,UpdateDownloadService
,XMLClientDataService
A Web Service supporting file downloads.
- Since:
- 2.2
- Version:
- 11.1
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
sendFile
(File f, HttpServletResponse rsp) Sends a file to the HTTP output stream, either via mod_xsendfile or through native Java I/O streaming.
-
Constructor Details
-
DownloadService
public DownloadService()
-
-
Method Details
-
sendFile
Sends a file to the HTTP output stream, either via mod_xsendfile or through native Java I/O streaming.- Parameters:
f
- the file to sendrsp
- the HTTP Servlet response
-