public class FragmentJarScannerCallback extends Object implements JarScannerCallback
Constructor and Description |
---|
FragmentJarScannerCallback(WebXmlParser webXmlParser,
boolean delegate) |
Modifier and Type | Method and Description |
---|---|
Map<String,WebXml> |
getFragments() |
boolean |
isOk() |
void |
scan(File file,
boolean isWebapp)
A JAR was found (probably in an unpacked WAR or possibly elsewhere on the
class path) and may be accessed for further processing via the provided
file.
|
void |
scan(JarURLConnection jarConn,
boolean isWebapp)
A JAR was found (probably packaged in a WAR) and may be accessed for
further processing via the provided URL connection.
|
void |
scanWebInfClasses()
A directory structure was found within the web application at
/WEB-INF/classes that should be handled as an unpacked JAR.
|
public FragmentJarScannerCallback(WebXmlParser webXmlParser, boolean delegate)
public void scan(JarURLConnection jarConn, boolean isWebapp) throws IOException
JarScannerCallback
scan
in interface JarScannerCallback
jarConn
- The connection to the identified JARisWebapp
- Indicates if the JAR was found within a web application.
If false
the JAR should be treated as
being provided by the containerIOException
public void scan(File file, boolean isWebapp) throws IOException
JarScannerCallback
scan
in interface JarScannerCallback
file
- The file for the identified JAR.isWebapp
- Indicates if the JAR was found within a web application.
If false
the JAR should be treated as
being provided by the containerIOException
public void scanWebInfClasses()
JarScannerCallback
scanWebInfClasses
in interface JarScannerCallback
public boolean isOk()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.