|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.virtual.plugins.context.AbstractVirtualFileHandler
org.jboss.virtual.plugins.context.AbstractURLHandler
public abstract class AbstractURLHandler
URLHandler.
| Field Summary |
|---|
| Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
cachedLastModified, log, vfsUrl |
| Constructor Summary | |
|---|---|
AbstractURLHandler(VFSContext context,
VirtualFileHandler parent,
java.net.URL url,
java.lang.String name)
Create a newURLHandler. |
|
| Method Summary | |
|---|---|
boolean |
exists()
Basis existence on URLConnection.getLastModified() != 0. |
long |
getLastModified()
When the file was last modified |
long |
getSize()
Get the size |
java.net.URL |
getURL()
Get the url |
protected void |
initCacheLastModified()
|
boolean |
isHidden()
Whether it is hidden |
java.io.InputStream |
openStream()
Access the file contents. |
java.net.URI |
toURI()
Get the VF URI (file://root/org/jboss/X.java) |
java.net.URL |
toURL()
Get the VF URL (file://root/org/jboss/X.java) |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
checkClosed, close, decrement, doClose, equals, getName, getParent, getPathName, getVFSContext, getVirtualFile, hasBeenModified, hashCode, increment, setPathName, simpleFindChild, structuredFindChild, toString, toVfsUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.virtual.spi.VirtualFileHandler |
|---|
findChild, getChildren, isLeaf |
| Constructor Detail |
|---|
public AbstractURLHandler(VFSContext context,
VirtualFileHandler parent,
java.net.URL url,
java.lang.String name)
context - the contextparent - the parenturl - the urlname - the name
java.lang.IllegalArgumentException - for a null context, vfsPath or url| Method Detail |
|---|
protected void initCacheLastModified()
public java.net.URL getURL()
public java.net.URL toURL()
throws java.net.MalformedURLException,
java.net.URISyntaxException
VirtualFileHandler
toURL in interface VirtualFileHandlertoURL in class AbstractVirtualFileHandlerjava.net.MalformedURLException - for any error
java.net.URISyntaxException - for an error parsing the URI
public long getLastModified()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
public long getSize()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
public boolean exists()
throws java.io.IOException
java.io.IOException - - thrown on failure to detect existence.URLConnection.getLastModified(),
org.jboss.test.virtual.test.URLExistsUnitTestCase
public boolean isHidden()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
public java.io.InputStream openStream()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
public java.net.URI toURI()
throws java.net.URISyntaxException
VirtualFileHandler
java.net.URISyntaxException - for an error parsing the URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||