Package jmri.web.servlet.directory
Class DirectoryResource
- java.lang.Object
-
- org.eclipse.jetty.util.resource.Resource
-
- org.eclipse.jetty.util.resource.PathResource
-
- jmri.web.servlet.directory.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
OverrideResource.getListHTML(java.lang.String, boolean, java.lang.String)
inResource
so that directory listings can include the complete JMRI look and feel.
-
-
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
-
-
-
-
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 classorg.eclipse.jetty.util.resource.Resource
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classorg.eclipse.jetty.util.resource.PathResource
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.eclipse.jetty.util.resource.PathResource
-
-