Class VfsResourceProvider.VfsResource
- java.lang.Object
-
- de.businesscode.bcdui.web.servlets.VfsResourceProvider.VfsResource
-
- All Implemented Interfaces:
StaticResourceServlet.Resource
- Enclosing class:
- VfsResourceProvider
public static class VfsResourceProvider.VfsResource extends java.lang.Object implements StaticResourceServlet.Resource
represents a single resource to VFS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VfsResource(java.lang.String pathPr, org.apache.commons.vfs.FileObject fileObjectPr)
-
Method Summary
All Methods Instance Methods Concrete 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
-
getPath
public java.lang.String getPath()
- Specified by:
getPath
in interfaceStaticResourceServlet.Resource
- Returns:
- The non-null, fully qualified resource request path.
-
notFound
public boolean notFound()
- Specified by:
notFound
in interfaceStaticResourceServlet.Resource
- Returns:
- True, if this resource object points to a non-existent resource.
-
getLastModified
public java.lang.Long getLastModified() throws java.io.IOException
- Specified by:
getLastModified
in interfaceStaticResourceServlet.Resource
- Returns:
- The last modification timestamp of the resource. is NULL if resource does not exist
- Throws:
java.io.IOException
-
getData
public byte[] getData() throws java.io.IOException
Description copied from interface:StaticResourceServlet.Resource
Completely reads the resource data from the file system or classpath.- Specified by:
getData
in interfaceStaticResourceServlet.Resource
- Returns:
- The resource data.
- Throws:
java.io.IOException
-
-