Package io.deephaven.server.jetty11
Class ControlledCacheResource
java.lang.Object
org.eclipse.jetty.util.resource.Resource
io.deephaven.server.jetty11.ControlledCacheResource
- All Implemented Interfaces:
Iterable<org.eclipse.jetty.util.resource.Resource>
public class ControlledCacheResource
extends org.eclipse.jetty.util.resource.Resource
Simple wrapper around the Jetty Resource type, to grant us control over caching features. The current implementation
only removes the last-modified value, but a future version could provide a "real" weak/strong etag.
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.util.resource.Resourcevoidclose()booleandelete()booleanbooleanexists()getFile()getName()getURI()inthashCode()booleanisContainedIn(org.eclipse.jetty.util.resource.Resource r) booleanlonglonglength()String[]list()booleanrenameTo(org.eclipse.jetty.util.resource.Resource dest) toString()static ControlledCacheResourcewrap(org.eclipse.jetty.util.resource.Resource wrapped) Methods inherited from class org.eclipse.jetty.util.resource.Resource
contains, copyTo, dump, getAllResources, getFileName, getPath, getPathTo, getRealURI, isAlias, isReadable, isSameFile, iterator, newInputStream, newReadableByteChannel, resolveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
wrap
-
isContainedIn
public boolean isContainedIn(org.eclipse.jetty.util.resource.Resource r) throws MalformedURLException - Overrides:
isContainedInin classorg.eclipse.jetty.util.resource.Resource- Throws:
MalformedURLException
-
close
public void close() -
exists
public boolean exists()- Overrides:
existsin classorg.eclipse.jetty.util.resource.Resource
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin classorg.eclipse.jetty.util.resource.Resource
-
lastModified
public long lastModified() -
length
public long length()- Overrides:
lengthin classorg.eclipse.jetty.util.resource.Resource
-
getURI
- Specified by:
getURIin classorg.eclipse.jetty.util.resource.Resource
-
getFile
- Throws:
IOException
-
getName
- Specified by:
getNamein classorg.eclipse.jetty.util.resource.Resource
-
getInputStream
- Throws:
IOException
-
getReadableByteChannel
- Throws:
IOException
-
delete
- Throws:
SecurityException
-
renameTo
- Throws:
SecurityException
-
list
-
addPath
public org.eclipse.jetty.util.resource.Resource addPath(String path) throws IOException, MalformedURLException - Throws:
IOExceptionMalformedURLException
-
toString
- Overrides:
toStringin classorg.eclipse.jetty.util.resource.Resource
-
hashCode
public int hashCode() -
equals
-