Class DownloadService

java.lang.Object
org.deltava.service.WebService
org.deltava.service.DownloadService
Direct Known Subclasses:
PFPXScheduleService, RawTrackService, UpdateDownloadService, XMLClientDataService

public abstract class DownloadService extends WebService
A Web Service supporting file downloads.
Since:
2.2
Version:
11.1
Author:
Luke
  • Constructor Details

    • DownloadService

      public DownloadService()
  • Method Details

    • sendFile

      protected 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.
      Parameters:
      f - the file to send
      rsp - the HTTP Servlet response