Class DownloadAction.ResourceStreamInfo

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

public static class DownloadAction.ResourceStreamInfo extends Object implements DownloadAction.StreamInfo
A concrete implementation of the StreamInfo interface which simplifies the downloading of a web application resource.
  • Constructor Details

    • ResourceStreamInfo

      public ResourceStreamInfo(String contentType, ServletContext context, String path)
      Constructs an instance of this class, based on the supplied parameters.
      Parameters:
      contentType - The content type of the file.
      context - The servlet context for the resource.
      path - The path to the resource to be downloaded.
  • Method Details