public class FragmentJarScannerCallback extends java.lang.Object implements JarScannerCallback
Constructor and Description |
---|
FragmentJarScannerCallback(WebXmlParser webXmlParser,
boolean delegate,
boolean parseRequired) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,WebXml> |
getFragments() |
boolean |
isOk() |
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 jarConn,
java.lang.String webappPath,
boolean isWebapp)
A JAR was found 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, boolean parseRequired)
public void scan(java.net.JarURLConnection jarConn, java.lang.String webappPath, boolean isWebapp) throws java.io.IOException
JarScannerCallback
scan
in interface JarScannerCallback
jarConn
- 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
public void scan(Jar jar, java.lang.String webappPath, boolean isWebapp) throws java.io.IOException
JarScannerCallback
scan
in interface JarScannerCallback
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 JARpublic void scan(java.io.File file, java.lang.String webappPath, boolean isWebapp) throws java.io.IOException
JarScannerCallback
scan
in interface JarScannerCallback
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
public void scanWebInfClasses()
JarScannerCallback
scanWebInfClasses
in interface JarScannerCallback
public boolean isOk()
public java.util.Map<java.lang.String,WebXml> getFragments()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.