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 Details

    • wrap

      public static ControlledCacheResource wrap(org.eclipse.jetty.util.resource.Resource wrapped)
    • isContainedIn

      public boolean isContainedIn(org.eclipse.jetty.util.resource.Resource r) throws MalformedURLException
      Overrides:
      isContainedIn in class org.eclipse.jetty.util.resource.Resource
      Throws:
      MalformedURLException
    • close

      public void close()
    • exists

      public boolean exists()
      Overrides:
      exists in class org.eclipse.jetty.util.resource.Resource
    • isDirectory

      public boolean isDirectory()
      Specified by:
      isDirectory in class org.eclipse.jetty.util.resource.Resource
    • lastModified

      public long lastModified()
    • length

      public long length()
      Overrides:
      length in class org.eclipse.jetty.util.resource.Resource
    • getURI

      public URI getURI()
      Specified by:
      getURI in class org.eclipse.jetty.util.resource.Resource
    • getFile

      public File getFile() throws IOException
      Throws:
      IOException
    • getName

      public String getName()
      Specified by:
      getName in class org.eclipse.jetty.util.resource.Resource
    • getInputStream

      public InputStream getInputStream() throws IOException
      Throws:
      IOException
    • getReadableByteChannel

      public ReadableByteChannel getReadableByteChannel() throws IOException
      Throws:
      IOException
    • delete

      public boolean delete() throws SecurityException
      Throws:
      SecurityException
    • renameTo

      public boolean renameTo(org.eclipse.jetty.util.resource.Resource dest) throws SecurityException
      Throws:
      SecurityException
    • list

      public String[] list()
    • addPath

      public org.eclipse.jetty.util.resource.Resource addPath(String path) throws IOException, MalformedURLException
      Throws:
      IOException
      MalformedURLException
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.jetty.util.resource.Resource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object