public interface JarScannerCallback
JarScanner
to enable
them to receive notification of a discovered JAR.Modifier and Type | Method and Description |
---|---|
void |
scan(java.io.File file,
java.lang.String webappPath,
boolean isWebapp)
A directory was found that is to be treated as an unpacked JAR.
|
void |
scan(Jar jar,
java.lang.String webappPath,
boolean isWebapp)
A JAR was found and may be accessed for further processing via the
provided URL connection.
|
void |
scan(java.net.JarURLConnection urlConn,
java.lang.String webappPath,
boolean isWebapp)
Deprecated.
Use
scan(Jar, String, boolean) instead. Because the
urlConn parameter could refer directly to a JAR or to a JAR
as an entry in a WAR, it required further processing that
included obtaining the original URL. It is simpler to provide
the URL to start with.
This method will be removed in Tomcat 8.5.x onwards. |
void |
scanWebInfClasses()
A directory structure was found within the web application at
/WEB-INF/classes that should be handled as an unpacked JAR.
|
@Deprecated void scan(java.net.JarURLConnection urlConn, java.lang.String webappPath, boolean isWebapp) throws java.io.IOException
scan(Jar, String, boolean)
instead. Because the
urlConn parameter could refer directly to a JAR or to a JAR
as an entry in a WAR, it required further processing that
included obtaining the original URL. It is simpler to provide
the URL to start with.
This method will be removed in Tomcat 8.5.x onwards.urlConn
- The connection to the identified JARwebappPath
- The path, if any, to the JAR within the web applicationisWebapp
- Indicates if the JAR was found within a web
application. If false
the JAR should
be treated as being provided by the containerjava.io.IOException
void scan(Jar jar, java.lang.String webappPath, boolean isWebapp) throws java.io.IOException
jar
- The JAR to processwebappPath
- The path, if any, to the JAR within the web applicationisWebapp
- Indicates if the JAR was found within a web
application. If false
the JAR should
be treated as being provided by the containerjava.io.IOException
- if an I/O error occurs while scanning the JARvoid scan(java.io.File file, java.lang.String webappPath, boolean isWebapp) throws java.io.IOException
file
- The directory containing the unpacked JAR.webappPath
- The path, if any, to the file within the web
applicationisWebapp
- Indicates if the JAR was found within a web
application. If false
the JAR should
be treated as being provided by the containerjava.io.IOException
void scanWebInfClasses() throws java.io.IOException
java.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.