Class XLinkProcessor

    • Constructor Detail

      • XLinkProcessor

        public XLinkProcessor()
        Constructor.
    • Method Detail

      • getLog

        protected org.slf4j.Logger getLog()
      • replace

        public String replace​(String prefix,
                              String variable,
                              String defValue,
                              jakarta.servlet.http.HttpServletRequest req)
        Description copied from interface: VariablesProcessor
        Replace method.
        Specified by:
        replace in interface VariablesProcessor
        Parameters:
        prefix - processor prefix
        variable - variable to replace
        defValue - default value
        req - request
        Returns:
        replaced text
      • getResourcePath

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

        protected abstract String getFileName​(String variable)
        Returns the filename corresponding with the variable.
        Parameters:
        variable - var itself
        Returns:
        file name