Package org.revapi.java.extract
Class WarJarExtractor
- java.lang.Object
-
- org.revapi.java.extract.WarJarExtractor
-
- All Implemented Interfaces:
org.revapi.configuration.Configurable
,org.revapi.java.spi.JarExtractor
public class WarJarExtractor extends Object implements org.revapi.java.spi.JarExtractor
If the provided archive is a ZIP file (which also means a JAR file) and it contains entries in the WEB-INF/classes directory then only those entries are considered for API analysis.Can be configured using
include
andexclude
lists of regexes on archive names so that user can switch this extractor off if need be.Extension ID:
war
-
-
Constructor Summary
Constructors Constructor Description WarJarExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<InputStream>
extract(org.revapi.Archive archive)
String
getExtensionId()
Reader
getJSONSchema()
void
initialize(org.revapi.AnalysisContext analysisContext)
-
-
-
Method Detail
-
extract
public Optional<InputStream> extract(org.revapi.Archive archive)
- Specified by:
extract
in interfaceorg.revapi.java.spi.JarExtractor
-
getExtensionId
public String getExtensionId()
- Specified by:
getExtensionId
in interfaceorg.revapi.configuration.Configurable
-
getJSONSchema
@Nullable public Reader getJSONSchema()
- Specified by:
getJSONSchema
in interfaceorg.revapi.configuration.Configurable
-
initialize
public void initialize(@Nonnull org.revapi.AnalysisContext analysisContext)
- Specified by:
initialize
in interfaceorg.revapi.configuration.Configurable
-
-