|
||||||||||
| 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(String path)
Specifies the classpath path containing the resource |
|
| Method Summary | |
|---|---|
Resource |
addPath(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. |
Object |
getAssociate()
|
File |
getFile()
Returns an File representing the given resource or NULL if this is not possible. |
InputStream |
getInputStream()
Returns an input stream to the resource |
String |
getName()
Returns the name of the resource |
OutputStream |
getOutputStream()
Returns an output stream to the resource |
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 |
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 |
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(String path)
| Method Detail |
|---|
public 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 URL getURL()
Resource
getURL in class Resource
public File getFile()
throws IOException
Resource
getFile in class ResourceIOExceptionpublic String getName()
Resource
getName in class Resource
public InputStream getInputStream()
throws IOException
Resource
getInputStream in class ResourceIOException
public OutputStream getOutputStream()
throws IOException,
SecurityException
Resource
getOutputStream in class ResourceIOException
SecurityException
public boolean delete()
throws SecurityException
Resource
delete in class ResourceSecurityException
public boolean renameTo(Resource dest)
throws SecurityException
Resource
renameTo in class ResourceSecurityExceptionpublic String[] list()
Resource
list in class Resource
public Resource addPath(String pathParm)
throws IOException,
MalformedURLException
Resource
addPath in class ResourcepathParm - The path segment to add, which should be encoded by the
encode method.
IOException
MalformedURLExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||