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
ConstructorsModifierConstructorDescriptionprotectedVfsResource(String pathPr, org.apache.commons.vfs2.FileObject fileObjectPr) -
Method Summary
-
Constructor Details
-
VfsResource
-
-
Method Details
-
getPath
- Specified by:
getPathin interfaceStaticResourceServlet.Resource- Returns:
- The non-null, fully qualified resource request path.
-
notFound
public boolean notFound()- Specified by:
notFoundin interfaceStaticResourceServlet.Resource- Returns:
- True, if this resource object points to a non-existent resource.
-
getLastModified
- Specified by:
getLastModifiedin 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.ResourceCompletely reads the resource data from the file system or classpath.- Specified by:
getDatain interfaceStaticResourceServlet.Resource- Returns:
- The resource data.
- Throws:
IOException
-