Class WarJarExtractor

  • All Implemented Interfaces:

    public class WarJarExtractor
    extends Object
    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 and exclude lists of regexes on archive names so that user can switch this extractor off if need be.

    Extension ID: war

    • Constructor Detail

      • WarJarExtractor

        public WarJarExtractor()
    • Method Detail

      • extract

        public Optional<InputStream> extract​(org.revapi.Archive archive)
        Specified by:
        extract in interface
      • getExtensionId

        public String getExtensionId()
        Specified by:
        getExtensionId in interface org.revapi.configuration.Configurable
      • getJSONSchema

        public Reader getJSONSchema()
        Specified by:
        getJSONSchema in interface org.revapi.configuration.Configurable
      • initialize

        public void initialize​(@Nonnull
                               org.revapi.AnalysisContext analysisContext)
        Specified by:
        initialize in interface org.revapi.configuration.Configurable