Class PdfImportSession.PdfImportResourceHandler

  • Enclosing class:
    PdfImportSession

    @RequestScoped
    @Named("pdfImportResourceHandler")
    public static class PdfImportSession.PdfImportResourceHandler
    extends Object
    PrimeFaces dynamic resources (DynamicContentSrcBuilder) use the Faces resource servlet, which does not support view scoped beans. This is a simple CDI class that handles dynamic resource requests. The relevant state is saved in the session.
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • PdfImportResourceHandler

        public PdfImportResourceHandler()
    • Method Detail

      • getInlineImageStreamedContent

        public org.primefaces.model.StreamedContent getInlineImageStreamedContent()
        Serves the given inline image included in the PDF document.
        Returns:
        The content for the inline image.
      • getPageScreenshotStreamedContent

        public org.primefaces.model.StreamedContent getPageScreenshotStreamedContent()
        Serves the PNG image with the thumbnail of a page.
        Returns:
        The content for the thumbnail image.
      • getPageThumbnailStreamedContent

        public org.primefaces.model.StreamedContent getPageThumbnailStreamedContent()
        Serves the PNG image with the thumbnail of a page.
        Returns:
        The content for the thumbnail image.