org.jboss.test.faces.jetty
Class VirtualDirectoryResource
java.lang.Object
org.mortbay.resource.Resource
org.jboss.test.faces.jetty.VirtualDirectoryResource
- All Implemented Interfaces:
- Serializable
public class VirtualDirectoryResource
- extends org.mortbay.resource.Resource
- Author:
- Nick Belaevski
- See Also:
- Serialized Form
| Fields inherited from class org.mortbay.resource.Resource |
__defaultUseCaches |
| Methods inherited from class org.mortbay.resource.Resource |
encode, finalize, getAlias, getAssociate, getDefaultUseCaches, getListHTML, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newSystemResource, setAssociate, setDefaultUseCaches, writeTo |
VirtualDirectoryResource
public VirtualDirectoryResource(String path)
delete
public boolean delete()
throws SecurityException
- Specified by:
delete in class org.mortbay.resource.Resource
- Throws:
SecurityException
exists
public boolean exists()
- Specified by:
exists in class org.mortbay.resource.Resource
getFile
public File getFile()
throws IOException
- Specified by:
getFile in class org.mortbay.resource.Resource
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in class org.mortbay.resource.Resource
- Throws:
IOException
getName
public String getName()
- Specified by:
getName in class org.mortbay.resource.Resource
getOutputStream
public OutputStream getOutputStream()
throws IOException,
SecurityException
- Specified by:
getOutputStream in class org.mortbay.resource.Resource
- Throws:
IOException
SecurityException
getURL
public URL getURL()
- Specified by:
getURL in class org.mortbay.resource.Resource
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in class org.mortbay.resource.Resource
lastModified
public long lastModified()
- Specified by:
lastModified in class org.mortbay.resource.Resource
length
public long length()
- Specified by:
length in class org.mortbay.resource.Resource
list
public String[] list()
- Specified by:
list in class org.mortbay.resource.Resource
release
public void release()
- Specified by:
release in class org.mortbay.resource.Resource
renameTo
public boolean renameTo(org.mortbay.resource.Resource dest)
throws SecurityException
- Specified by:
renameTo in class org.mortbay.resource.Resource
- Throws:
SecurityException
toString
public String toString()
- Overrides:
toString in class Object
addPath
public org.mortbay.resource.Resource addPath(String path)
throws IOException,
MalformedURLException
- Specified by:
addPath in class org.mortbay.resource.Resource
- Throws:
IOException
MalformedURLException
createChildDirectory
public VirtualDirectoryResource createChildDirectory(String name)
addResource
public void addResource(String string,
org.mortbay.resource.Resource childResource)
createChildDirectory
public void createChildDirectory(ServerResourcePath serverResourcePath)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.