public class DirectoryResource.DirectoryPool
extends java.lang.Object
Variables defined in this private pool are:
Methods defined in this private pool are:
Constructor and Description |
---|
DirectoryPool()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMode()
Gets the access mode of the current operation.
|
java.lang.String |
getNode()
Gets the directory node under consideration.
|
boolean |
isUnder(java.lang.String branch)
Relates the current directory node to a directory branch.
|
public java.lang.String getNode()
public java.lang.String getMode()
public boolean isUnder(java.lang.String branch)
Since the implementation simply compares the strings using the String.startsWith() method, the branch parameter should be made of one or more complete links to produce a meaningful result.
branch
- directory tree branch to compare withtrue
if the current path is under the branch,
false
otherwise.false
is returned if path is the directory root
"".true
is returned if branch is the directory root
"" (unless the path is the root, too).