public class ServletContextDriver extends AbstractFSDriver<java.lang.String>
| Constructor and Description |
|---|
ServletContextDriver(javax.servlet.ServletContext ctx,
java.lang.String root) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.lang.String> |
children(java.lang.String parent) |
long |
getLastModified(java.lang.String handle) |
boolean |
isDir(java.lang.String file) |
java.lang.String |
name(java.lang.String file) |
java.util.Iterator<java.io.InputStream> |
open(java.lang.String handle) |
java.lang.String |
root()
Returns the root handle.
|
java.net.URL |
toURL(java.lang.String file)
The implementation attempts to get an URL that will be valid for the file system first (when the
war is usually exploded) and if it is not able, it will delegate to
ServletContext.getResource(String). |
childpublic ServletContextDriver(javax.servlet.ServletContext ctx,
java.lang.String root)
public java.lang.String root()
throws java.io.IOException
FSDriverjava.io.IOException - any io exceptionpublic java.lang.String name(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionpublic boolean isDir(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Iterable<java.lang.String> children(java.lang.String parent)
throws java.io.IOException
java.io.IOExceptionpublic java.net.URL toURL(java.lang.String file)
throws java.io.IOException
ServletContext.getResource(String).file - the file pathjava.io.IOException - any io exceptionpublic long getLastModified(java.lang.String handle)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator<java.io.InputStream> open(java.lang.String handle)
throws java.io.IOException
java.io.IOExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.