public class WebappResource extends AbstractResource
baseName, name, path, repository| Modifier | Constructor and Description |
|---|---|
protected |
WebappResource(javax.servlet.ServletContext context,
WebappRepository repository,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
exists()
Checks wether this resource actually (still) exists
|
InputStream |
getInputStream()
Returns an input stream to the content of the resource
|
long |
getLength()
Returns the length of the resource's content
|
URL |
getUrl()
Returns an url to the resource if the repository of this resource is
able to provide urls.
|
int |
hashCode() |
long |
lastModified()
Returns the date the resource was last modified
|
String |
toString() |
getBaseName, getChecksum, getContent, getContent, getLineNumber, getModuleName, getName, getParentRepository, getPath, getReader, getReader, getRelativePath, getRootRepository, getStripShebang, isAbsolute, setAbsolute, setBaseNameFromName, setStripShebang, stripShebangprotected WebappResource(javax.servlet.ServletContext context,
WebappRepository repository,
String name)
public long lastModified()
Trackablepublic boolean exists()
throws IOException
TrackableIOExceptionpublic long getLength()
Resourcepublic InputStream getInputStream() throws IOException
ResourceIOException - if a I/O related error occurspublic URL getUrl() throws MalformedURLException
TrackableMalformedURLExceptionCopyright © 2016. All rights reserved.