Interface ResourceSet

  • All Known Implementing Classes:
    FileResourceSet

    public interface ResourceSet
    A ResourceSet abstracts Resource lookup mechanism.

    ResourceSet implementations have to make sure that they don't return resources outside of their scopes. For instance, the FileResourceSet verifies that the found resource is really a child file of the root directory (imagine that the path to lookup is ../../etc/passwd).

    • Method Detail

      • find

        Resource find​(String path)
        Finds a Resource matching the given path. Returns null if no resource can be found or if any error happened during lookup.
        Parameters:
        path - resource path
        Returns:
        a matching Resource or null if not found or failure.