Class AliasedDirectoryResource

  • All Implemented Interfaces:
    Resource

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

      • AliasedDirectoryResource

        public AliasedDirectoryResource()
        Constructor.
      • AliasedDirectoryResource

        public AliasedDirectoryResource​(File rootDirectory,
                                        String alias)
        Constructor.
        Parameters:
        rootDirectory - the root directory.
        alias - the alias.
    • 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.
      • getAlias

        public String getAlias()
        Get the alias.
        Returns:
        the alias.
      • getRootDirectory

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

        public void setAlias​(String alias)
        Set the alias.
        Parameters:
        alias - the alias.
      • setRootDirectory

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