|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.jetty.util.Resource
org.openqa.selenium.server.ClassPathResource
public class ClassPathResource
Represents resource file off of the classpath.
| Constructor Summary | |
|---|---|
ClassPathResource(java.lang.String path)
Specifies the classpath path containing the resource |
|
| Method Summary | |
|---|---|
Resource |
addPath(java.lang.String pathParm)
Returns the resource contained inside the current resource with the given name. |
boolean |
delete()
Deletes the given resource |
boolean |
exists()
Returns true if the respresened resource exists. |
java.lang.Object |
getAssociate()
|
java.io.File |
getFile()
Returns an File representing the given resource or NULL if this is not possible. |
java.io.InputStream |
getInputStream()
Returns an input stream to the resource |
java.lang.String |
getName()
Returns the name of the resource |
java.io.OutputStream |
getOutputStream()
Returns an output stream to the resource |
java.net.URL |
getURL()
Returns an URL representing the given resource |
boolean |
isDirectory()
Returns true if the respresenetd resource is a container/directory. |
long |
lastModified()
Returns the lastModified time, which is always in the distant future to prevent caching. |
long |
length()
Return the length of the resource |
java.lang.String[] |
list()
Returns a list of resource names contained in the given resource The resource names are not URL encoded. |
void |
release()
Release any resources held by the resource. |
boolean |
renameTo(Resource dest)
Rename the given resource |
java.lang.String |
toString()
|
| Methods inherited from class org.openqa.jetty.util.Resource |
|---|
cache, encode, finalize, getAlias, getListHTML, newResource, newResource, newSystemResource, setAssociate, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPathResource(java.lang.String path)
| Method Detail |
|---|
public java.lang.Object getAssociate()
getAssociate in class Resourcepublic void release()
Resource
release in class Resourcepublic boolean exists()
Resource
exists in class Resourcepublic boolean isDirectory()
Resource
isDirectory in class Resourcepublic long lastModified()
lastModified in class Resourcepublic long length()
Resource
length in class Resourcepublic java.net.URL getURL()
Resource
getURL in class Resource
public java.io.File getFile()
throws java.io.IOException
Resource
getFile in class Resourcejava.io.IOExceptionpublic java.lang.String getName()
Resource
getName in class Resource
public java.io.InputStream getInputStream()
throws java.io.IOException
Resource
getInputStream in class Resourcejava.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException,
java.lang.SecurityException
Resource
getOutputStream in class Resourcejava.io.IOException
java.lang.SecurityException
public boolean delete()
throws java.lang.SecurityException
Resource
delete in class Resourcejava.lang.SecurityException
public boolean renameTo(Resource dest)
throws java.lang.SecurityException
Resource
renameTo in class Resourcejava.lang.SecurityExceptionpublic java.lang.String[] list()
Resource
list in class Resource
public Resource addPath(java.lang.String pathParm)
throws java.io.IOException,
java.net.MalformedURLException
Resource
addPath in class ResourcepathParm - The path segment to add, which should be encoded by the
encode method.
java.io.IOException
java.net.MalformedURLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||