Class DirectoryResource

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.eclipse.jetty.util.resource.ResourceFactory

    public class DirectoryResource
    extends org.eclipse.jetty.util.resource.PathResource
    Override Resource.getListHTML(java.lang.String, boolean, java.lang.String) in Resource so that directory listings can include the complete JMRI look and feel.
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.util.resource.Resource

        __defaultUseCaches
    • Constructor Summary

      Constructors 
      Constructor Description
      DirectoryResource​(java.util.Locale locale, org.eclipse.jetty.util.resource.Resource resource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      java.lang.String getListHTML​(java.lang.String base, boolean parent, java.lang.String query)  
      int hashCode()  
      • Methods inherited from class org.eclipse.jetty.util.resource.PathResource

        addPath, close, copyTo, delete, exists, getAlias, getAliasPath, getFile, getInputStream, getName, getPath, getReadableByteChannel, getURI, getURL, isAlias, isContainedIn, isDirectory, isSameName, lastModified, length, list, newSeekableByteChannel, renameTo, toString, writeTo
      • Methods inherited from class org.eclipse.jetty.util.resource.Resource

        encode, finalize, getAllResources, getAssociate, getDefaultUseCaches, getListHTML, getResource, getWeakETag, getWeakETag, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, release, setAssociate, setDefaultUseCaches, toURL
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DirectoryResource

        public DirectoryResource​(java.util.Locale locale,
                                 org.eclipse.jetty.util.resource.Resource resource)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getListHTML

        public java.lang.String getListHTML​(java.lang.String base,
                                            boolean parent,
                                            java.lang.String query)
                                     throws java.io.IOException
        Overrides:
        getListHTML in class org.eclipse.jetty.util.resource.Resource
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class org.eclipse.jetty.util.resource.PathResource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.eclipse.jetty.util.resource.PathResource