Package com.sun.identity.common
Class ResourceLookup
- java.lang.Object
-
- com.sun.identity.common.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 Summary
Constructors Constructor Description ResourceLookup()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetFirstExisting(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.
-
-
-
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:
Stringfirst existing resource in the ordered search paths.
-
-