|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.deployment.scanner.DeploymentFilter
A simple filter to for the URLDeploymentScanner. Three arrays are maintained for checking: a prefix, suffix, and match array. If the filename starts with any of the prefixes, ends with any of the suffixes, or exactly matches any of the matches, then the accepts method will return false.
Constructor Summary | |
DeploymentFilter()
Use the default values for suffixes, prefixes, and matches |
|
DeploymentFilter(String[] matches,
String[] prefixes,
String[] suffixes)
Create using a custom set of matches, prefixes, and suffixes. |
Method Summary | |
boolean |
accept(File file)
If the filename matches any string in the prefix, suffix, or matches array, return false. |
boolean |
accept(URL baseURL,
String memberName)
|
void |
addPrefix(String prefix)
|
void |
addPrefixes(String[] prefixes)
|
void |
addSuffix(String suffix)
|
void |
addSuffixes(String[] suffixes)
|
void |
delPrefix(String prefix)
|
void |
delPrefixes(String[] prefixes)
|
void |
delSuffix(String suffix)
|
void |
delSuffixes(String[] suffixes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeploymentFilter()
public DeploymentFilter(String[] matches, String[] prefixes, String[] suffixes)
Method Detail |
public void addPrefix(String prefix)
public void addPrefixes(String[] prefixes)
public void delPrefix(String prefix)
public void delPrefixes(String[] prefixes)
public void addSuffix(String suffix)
public void addSuffixes(String[] suffixes)
public void delSuffix(String suffix)
public void delSuffixes(String[] suffixes)
public boolean accept(File file)
accept
in interface FileFilter
file
- The file to be tested
false
if the filename matches any of the prefixes,
suffixes, or matches.public boolean accept(URL baseURL, String memberName)
accept
in interface org.jboss.net.protocol.URLLister.URLFilter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |