Class FragmentJarScannerCallback
- java.lang.Object
- 
- org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback
 
- 
- All Implemented Interfaces:
- JarScannerCallback
 
 public class FragmentJarScannerCallback extends java.lang.Object implements JarScannerCallback Callback handling a web-fragment.xml descriptor.
- 
- 
Constructor SummaryConstructors Constructor Description FragmentJarScannerCallback(WebXmlParser webXmlParser, boolean delegate, boolean parseRequired)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,WebXml>getFragments()booleanisOk()voidscan(java.io.File file, java.lang.String webappPath, boolean isWebapp)A directory was found that is to be treated as an unpacked JAR.voidscan(Jar jar, java.lang.String webappPath, boolean isWebapp)A JAR was found and may be accessed for further processing via the provided URL connection.voidscanWebInfClasses()A directory structure was found within the web application at /WEB-INF/classes that should be handled as an unpacked JAR.
 
- 
- 
- 
Constructor Detail- 
FragmentJarScannerCallbackpublic FragmentJarScannerCallback(WebXmlParser webXmlParser, boolean delegate, boolean parseRequired) 
 
- 
 - 
Method Detail- 
scanpublic void scan(Jar jar, java.lang.String webappPath, boolean isWebapp) throws java.io.IOException Description copied from interface:JarScannerCallbackA JAR was found and may be accessed for further processing via the provided URL connection. The caller is responsible for closing the JAR.- Specified by:
- scanin interface- JarScannerCallback
- Parameters:
- jar- The JAR to process
- webappPath- The path, if any, to the JAR within the web application
- isWebapp- Indicates if the JAR was found within a web application. If- falsethe JAR should be treated as being provided by the container
- Throws:
- java.io.IOException- if an I/O error occurs while scanning the JAR
 
 - 
scanpublic void scan(java.io.File file, java.lang.String webappPath, boolean isWebapp) throws java.io.IOExceptionDescription copied from interface:JarScannerCallbackA directory was found that is to be treated as an unpacked JAR. The directory may be accessed for further processing via the provided file.- Specified by:
- scanin interface- JarScannerCallback
- Parameters:
- file- The directory containing the unpacked JAR.
- webappPath- The path, if any, to the file within the web application
- isWebapp- Indicates if the JAR was found within a web application. If- falsethe JAR should be treated as being provided by the container
- Throws:
- java.io.IOException- if an I/O error occurs while scanning the JAR
 
 - 
scanWebInfClassespublic void scanWebInfClasses() Description copied from interface:JarScannerCallbackA directory structure was found within the web application at /WEB-INF/classes that should be handled as an unpacked JAR. Note that all resource access must be via the ServletContext to ensure that any additional resources are visible.- Specified by:
- scanWebInfClassesin interface- JarScannerCallback
 
 - 
isOkpublic boolean isOk() 
 - 
getFragmentspublic java.util.Map<java.lang.String,WebXml> getFragments() 
 
- 
 
-