Class ResourceLookup


  • public class ResourceLookup
    extends Object
    ResourceLookup is a partial replacement for implementation of FileLookup. It performs the equivalent of "fstat" using ServletContext.getResource(), thus increasing web container independence.
    • Constructor Detail

      • ResourceLookup

        public ResourceLookup()
    • Method Detail

      • getFirstExisting

        public static String getFirstExisting​(jakarta.servlet.ServletContext context,
                                              String fileRoot,
                                              String locale,
                                              String orgFilePath,
                                              String clientPath,
                                              String filename,
                                              String resourceDir)
        Returns the first existing resource in the ordered search paths.
        Parameters:
        context - Servlet Context Reference.
        fileRoot -
        locale -
        orgFilePath -
        clientPath -
        filename -
        resourceDir - absolute path of template base directory
        Returns:
        String first existing resource in the ordered search paths.