Class DirectoryResource

  • All Implemented Interfaces:
    Resource

    public class DirectoryResource
    extends Object
    implements Resource
    The default DirectoryResource.
    Author:
    Manfred Riem (mriem@manorrock.com)
    • Constructor Detail

      • DirectoryResource

        public DirectoryResource()
        Constructor.
      • DirectoryResource

        public DirectoryResource​(String rootDirectory)
        Constructor.
        Parameters:
        rootDirectory - the root directory.
      • DirectoryResource

        public DirectoryResource​(File rootDirectory)
        Constructor.
        Parameters:
        rootDirectory - the root directory.
    • Method Detail

      • getResource

        public URL getResource​(String location)
        Description copied from interface: Resource
        Get the resource.
        Specified by:
        getResource in interface Resource
        Parameters:
        location - the location.
        Returns:
        the URL.
      • getRootDirectory

        public File getRootDirectory()
        Get the root directory.
        Returns:
        the root directory.
      • setRootDirectory

        public void setRootDirectory​(File rootDirectory)
        Set the root directory.
        Parameters:
        rootDirectory - the root directory.