Class DownloadBean

All Implemented Interfaces:
Serializable

@Named @RequestScoped public class DownloadBean extends FCContextBean
See Also:
  • Constructor Details

    • DownloadBean

      public DownloadBean()
  • Method Details

    • download

      public <T extends IFileDataEntity<?>> org.primefaces.model.StreamedContent download(IFileProviding<?,T> resource) throws javax.faces.event.AbortProcessingException
      Throws:
      javax.faces.event.AbortProcessingException
    • downloadFromURL

      public org.primefaces.model.StreamedContent downloadFromURL(URL resourceURL) throws javax.faces.event.AbortProcessingException
      Throws:
      javax.faces.event.AbortProcessingException
    • downloadFromFile

      public org.primefaces.model.StreamedContent downloadFromFile(File resourceFile) throws javax.faces.event.AbortProcessingException
      Throws:
      javax.faces.event.AbortProcessingException