Package org.apache.tomcat.util.scan
Class StandardJarScanFilter
- java.lang.Object
- 
- org.apache.tomcat.util.scan.StandardJarScanFilter
 
- 
- All Implemented Interfaces:
- JarScanFilter
 
 public class StandardJarScanFilter extends java.lang.Object implements JarScanFilter 
- 
- 
Constructor SummaryConstructors Constructor Description StandardJarScanFilter()This is the standard implementation ofJarScanFilter.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck(JarScanType jarScanType, java.lang.String jarName)java.lang.StringgetPluggabilityScan()java.lang.StringgetPluggabilitySkip()java.lang.StringgetTldScan()java.lang.StringgetTldSkip()booleanisDefaultPluggabilityScan()booleanisDefaultTldScan()booleanisSkipAll()voidsetDefaultPluggabilityScan(boolean defaultPluggabilityScan)voidsetDefaultTldScan(boolean defaultTldScan)voidsetPluggabilityScan(java.lang.String pluggabilityScan)voidsetPluggabilitySkip(java.lang.String pluggabilitySkip)voidsetTldScan(java.lang.String tldScan)voidsetTldSkip(java.lang.String tldSkip)
 
- 
- 
- 
Constructor Detail- 
StandardJarScanFilterpublic StandardJarScanFilter() This is the standard implementation ofJarScanFilter. By default, the following filtering rules are used:- JARs that match neither the skip nor the scan list will be included in scan results.
- JARs that match the skip list but not the scan list will be excluded from scan results.
- JARs that match the scan list will be included from scan results.
 Constants.SKIP_JARS_PROPERTYandConstants.SCAN_JARS_PROPERTYrespectively. These default values may be over-ridden for theJarScanType.TLDandJarScanType.PLUGGABILITYscans. The filtering rules may also be modified for these scan types usingsetDefaultTldScan(boolean)andsetDefaultPluggabilityScan(boolean). If set tofalse, the following filtering rules are used for associated type:- JARs that match neither the skip nor the scan list will be excluded from scan results.
- JARs that match the scan list but not the skip list will be included in scan results.
- JARs that match the skip list will be excluded from scan results.
 
 
- 
 - 
Method Detail- 
getTldSkippublic java.lang.String getTldSkip() 
 - 
setTldSkippublic void setTldSkip(java.lang.String tldSkip) 
 - 
getTldScanpublic java.lang.String getTldScan() 
 - 
setTldScanpublic void setTldScan(java.lang.String tldScan) 
 - 
isSkipAllpublic boolean isSkipAll() - Specified by:
- isSkipAllin interface- JarScanFilter
- Returns:
- trueif all of the scans should be skipped which can improve startup performance. The default is- false.
 
 - 
isDefaultTldScanpublic boolean isDefaultTldScan() 
 - 
setDefaultTldScanpublic void setDefaultTldScan(boolean defaultTldScan) 
 - 
getPluggabilitySkippublic java.lang.String getPluggabilitySkip() 
 - 
setPluggabilitySkippublic void setPluggabilitySkip(java.lang.String pluggabilitySkip) 
 - 
getPluggabilityScanpublic java.lang.String getPluggabilityScan() 
 - 
setPluggabilityScanpublic void setPluggabilityScan(java.lang.String pluggabilityScan) 
 - 
isDefaultPluggabilityScanpublic boolean isDefaultPluggabilityScan() 
 - 
setDefaultPluggabilityScanpublic void setDefaultPluggabilityScan(boolean defaultPluggabilityScan) 
 - 
checkpublic boolean check(JarScanType jarScanType, java.lang.String jarName) - Specified by:
- checkin interface- JarScanFilter
- Parameters:
- jarScanType- The type of JAR scan currently being performed
- jarName- The name of the JAR file (without any path information) to be checked to see if it should be included in the results or not
- Returns:
- trueif the JAR should be returned in the results,- falseif it should be excluded
 
 
- 
 
-