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 Object
implements StaticResourceServlet.Resource
represents a single resource to VFS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VfsResource
(String pathPr, org.apache.commons.vfs2.FileObject fileObjectPr) -
Method Summary
-
Constructor Details
-
VfsResource
-
-
Method Details
-
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
- Specified by:
getLastModified
in interfaceStaticResourceServlet.Resource
- Returns:
- The last modification timestamp of the resource. is NULL if resource does not exist
- Throws:
IOException
-
getData
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:
IOException
-