Class DownloadAction.FileStreamInfo

java.lang.Object
org.apache.struts.extras.actions.DownloadAction.FileStreamInfo
All Implemented Interfaces:
DownloadAction.StreamInfo
Enclosing class:
DownloadAction

public static class DownloadAction.FileStreamInfo extends Object implements DownloadAction.StreamInfo
A concrete implementation of the StreamInfo interface which simplifies the downloading of a file from the disk.
  • Constructor Details

    • FileStreamInfo

      public FileStreamInfo(String contentType, File file)
      Constructs an instance of this class, based on the supplied parameters.
      Parameters:
      contentType - The content type of the file.
      file - The file to be downloaded.
  • Method Details