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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getData()
Completely reads the resource data from the file system or classpath.java.lang.Long
getLastModified()
java.lang.String
getPath()
boolean
notFound()
-
-
-
Method Detail
-
notFound
boolean notFound()
- Returns:
- True, if this resource object points to a non-existent resource.
-
getPath
java.lang.String getPath()
- Returns:
- The non-null, fully qualified resource request path.
-
getLastModified
java.lang.Long getLastModified() throws java.io.IOException
- Returns:
- The last modification timestamp of the resource. is NULL if resource does not exist
- Throws:
java.io.IOException
-
getData
byte[] getData() throws java.io.IOException
Completely reads the resource data from the file system or classpath.- Returns:
- The resource data.
- Throws:
java.io.IOException
-
-