Interface StaticResourceServlet.Resource

All Known Implementing Classes:
StaticResourceServlet.LocalResource, VfsResourceProvider.VfsResource
Enclosing class:
StaticResourceServlet

public static interface StaticResourceServlet.Resource
resource abstract descriptor implementing API to the content
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Completely reads the resource data from the file system or classpath.
     
     
    boolean
     
  • Method Details

    • notFound

      boolean notFound()
      Returns:
      True, if this resource object points to a non-existent resource.
    • getPath

      String getPath()
      Returns:
      The non-null, fully qualified resource request path.
    • getLastModified

      Long getLastModified() throws IOException
      Returns:
      The last modification timestamp of the resource. is NULL if resource does not exist
      Throws:
      IOException
    • getData

      byte[] getData() throws IOException
      Completely reads the resource data from the file system or classpath.
      Returns:
      The resource data.
      Throws:
      IOException