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 Summary
Constructors Constructor Description StandardJarScanFilter()
This is the standard implementation ofJarScanFilter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(JarScanType jarScanType, java.lang.String jarName)
java.lang.String
getPluggabilityScan()
java.lang.String
getPluggabilitySkip()
java.lang.String
getTldScan()
java.lang.String
getTldSkip()
boolean
isDefaultPluggabilityScan()
boolean
isDefaultTldScan()
boolean
isSkipAll()
void
setDefaultPluggabilityScan(boolean defaultPluggabilityScan)
void
setDefaultTldScan(boolean defaultTldScan)
void
setPluggabilityScan(java.lang.String pluggabilityScan)
void
setPluggabilitySkip(java.lang.String pluggabilitySkip)
void
setTldScan(java.lang.String tldScan)
void
setTldSkip(java.lang.String tldSkip)
-
-
-
Constructor Detail
-
StandardJarScanFilter
public 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_PROPERTY
andConstants.SCAN_JARS_PROPERTY
respectively. These default values may be over-ridden for theJarScanType.TLD
andJarScanType.PLUGGABILITY
scans. 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
-
getTldSkip
public java.lang.String getTldSkip()
-
setTldSkip
public void setTldSkip(java.lang.String tldSkip)
-
getTldScan
public java.lang.String getTldScan()
-
setTldScan
public void setTldScan(java.lang.String tldScan)
-
isSkipAll
public boolean isSkipAll()
-
isDefaultTldScan
public boolean isDefaultTldScan()
-
setDefaultTldScan
public void setDefaultTldScan(boolean defaultTldScan)
-
getPluggabilitySkip
public java.lang.String getPluggabilitySkip()
-
setPluggabilitySkip
public void setPluggabilitySkip(java.lang.String pluggabilitySkip)
-
getPluggabilityScan
public java.lang.String getPluggabilityScan()
-
setPluggabilityScan
public void setPluggabilityScan(java.lang.String pluggabilityScan)
-
isDefaultPluggabilityScan
public boolean isDefaultPluggabilityScan()
-
setDefaultPluggabilityScan
public void setDefaultPluggabilityScan(boolean defaultPluggabilityScan)
-
check
public boolean check(JarScanType jarScanType, java.lang.String jarName)
- Specified by:
check
in interfaceJarScanFilter
- Parameters:
jarScanType
- The type of JAR scan currently being performedjarName
- 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:
true
if the JAR should be returned in the results,false
if it should be excluded
-
-