Top Description Methods
org.apache.tomcat

public Interface JarScannerCallback

Known Direct Implementers
org.apache.tomcat.util.descriptor.web.FragmentJarScannerCallback
Imports
java.io.File, .IOException

This interface is implemented by clients of the JarScanner to enable them to receive notification of a discovered JAR.

Method Summary

Modifier and TypeMethod and Description
public void
scan(Jar
The JAR to process
jar
,
String
The path, if any, to the JAR within the web application
webappPath
,
boolean
Indicates if the JAR was found within a web application. If false the JAR should be treated as being provided by the container
isWebapp
)

A JAR was found and may be accessed for further processing via the provided URL connection.

public void
scan(File
The directory containing the unpacked JAR.
file
,
String
The path, if any, to the file within the web application
webappPath
,
boolean
Indicates if the JAR was found within a web application. If false the JAR should be treated as being provided by the container
isWebapp
)

A directory was found that is to be treated as an unpacked JAR.

public void
scanWebInfClasses()

A directory structure was found within the web application at /WEB-INF/classes that should be handled as an unpacked JAR.

Method Detail

scanback to summary
public void scan(Jar jar, String webappPath, boolean isWebapp) throws IOException

A JAR was found and may be accessed for further processing via the provided URL connection. The caller is responsible for closing the JAR.

Parameters
jar:Jar

The JAR to process

webappPath:String

The path, if any, to the JAR within the web application

isWebapp:boolean

Indicates if the JAR was found within a web application. If false the JAR should be treated as being provided by the container

Exceptions
IOException:
if an I/O error occurs while scanning the JAR
scanback to summary
public void scan(File file, String webappPath, boolean isWebapp) throws IOException

A directory was found that is to be treated as an unpacked JAR. The directory may be accessed for further processing via the provided file.

Parameters
file:File

The directory containing the unpacked JAR.

webappPath:String

The path, if any, to the file within the web application

isWebapp:boolean

Indicates if the JAR was found within a web application. If false the JAR should be treated as being provided by the container

Exceptions
IOException:
if an I/O error occurs while scanning the JAR
scanWebInfClassesback to summary
public void scanWebInfClasses() throws IOException

A 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.

Exceptions
IOException:
if an I/O error occurs while scanning WEB-INF/classes