Class FileLinkProcessor

  • All Implemented Interfaces:
    VariablesProcessor

    public class FileLinkProcessor
    extends XLinkProcessor
    Processor for links to files (for example PDF) which are uploaded via IASResourceDataService.
    Author:
    lrosenberg
    • Constructor Detail

      • FileLinkProcessor

        public FileLinkProcessor()
    • Method Detail

      • getResourcePath

        protected String getResourcePath​(String contextPath)
        Description copied from class: XLinkProcessor
        Returns URL part with context path and mapping to proper servlet. Path will contains all required parts - for resource reach via ResourceServlet.
        Specified by:
        getResourcePath in class XLinkProcessor
        Parameters:
        contextPath - request context path
        Returns:
        string
      • getFileName

        protected String getFileName​(String variable)
        Description copied from class: XLinkProcessor
        Returns the filename corresponding with the variable.
        Specified by:
        getFileName in class XLinkProcessor
        Parameters:
        variable - var itself
        Returns:
        file name