public class WebappRepository extends AbstractRepository
SEPARATOR| Modifier | Constructor and Description |
|---|---|
|
WebappRepository(javax.servlet.ServletContext context,
String path) |
protected |
WebappRepository(javax.servlet.ServletContext context,
WebappRepository parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractRepository |
createChildRepository(String name)
Create a new child reposiotory with the given name.
|
boolean |
equals(Object obj) |
boolean |
exists()
Checks wether this resource actually (still) exists
|
long |
getChecksum()
Checksum of the resource content.
|
Repository[] |
getRepositories()
Returns this repository's direct child repositories
|
protected void |
getResources(List<Resource> list,
boolean recursive)
Add the repository's resources into the list, optionally descending into
nested repositories.
|
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
|
protected Resource |
lookupResource(String name)
Called to create a child resource for this repository if it exists.
|
String |
toString()
Returns the repositories full path as string representation.
|
getChildRepository, getModuleName, getName, getParentRepository, getPath, getRelativePath, getResource, getResources, getResources, getResources, getRootRepository, isAbsolute, lookupRepository, resolve, setAbsolute, setRootpublic WebappRepository(javax.servlet.ServletContext context,
String path)
protected WebappRepository(javax.servlet.ServletContext context,
WebappRepository parent,
String name)
public long getChecksum()
Trackablepublic long lastModified()
Trackablepublic boolean exists()
throws IOException
TrackableIOExceptionpublic URL getUrl() throws MalformedURLException
TrackableMalformedURLExceptionprotected Resource lookupResource(String name)
AbstractRepositorylookupResource in class AbstractRepositoryname - the name of the child resourceprotected AbstractRepository createChildRepository(String name)
AbstractRepositorycreateChildRepository in class AbstractRepositoryname - the nameprotected void getResources(List<Resource> list, boolean recursive) throws IOException
AbstractRepositorygetResources in class AbstractRepositorylist - the list to add the resources torecursive - whether to descend into nested repositoriesIOException - an I/O related error occurredpublic Repository[] getRepositories() throws IOException
RepositoryIOException - an I/O error occurredpublic String toString()
AbstractRepositorytoString in class AbstractRepositoryAbstractRepository.getPath()Copyright © 2016. All rights reserved.