public interface EnclosedEntity extends Entity
Modifier and Type | Method and Description |
---|---|
ArtifactContainer |
getEnclosingContainer()
Get the Container that encloses this entity.
|
java.lang.String |
getPath()
Get the path of this Entity within it's parents.
|
java.lang.String |
getPhysicalPath()
Deprecated.
added purely to support getRealPath on ServletContext .. post alpha this will need replacing.
|
ArtifactContainer |
getRoot()
Get the Container within this local root hierarchy, that would report isRoot=true.
|
ArtifactContainer getEnclosingContainer()
java.lang.String getPath()
ArtifactContainer getRoot()
Calling this on a Container that returns isRoot=true, will return that same Container
Calling this say, on an entry in a jar, will return the container representing the jar.
Calling this on the container representing the jar, will return itself.
@Deprecated java.lang.String getPhysicalPath()
Get path for this Entity. Not all implementations of this interface need to support this method and should return null
if they do not support them.
If the entry is container within an archive file such as a JAR or ZIP then this will return null
.
For directories that have more than one physical location mapped to them then this will return the first mapped resource.