Class HtmlFileListParser

java.lang.Object
org.apache.maven.wagon.shared.http.HtmlFileListParser

public class HtmlFileListParser extends Object
Html File List Parser.
  • Field Details

    • APACHE_INDEX_SKIP

      private static final Pattern APACHE_INDEX_SKIP
    • URLS_WITH_PATHS

      private static final Pattern URLS_WITH_PATHS
    • URLS_TO_PARENT

      private static final Pattern URLS_TO_PARENT
    • MAILTO_URLS

      private static final Pattern MAILTO_URLS
    • SKIPS

      private static final Pattern[] SKIPS
  • Constructor Details

    • HtmlFileListParser

      public HtmlFileListParser()
  • Method Details

    • parseFileList

      public static List<String> parseFileList(String baseurl, InputStream stream) throws TransferFailedException
      Fetches a raw HTML from a provided InputStream, parses it, and returns the file list.
      Parameters:
      stream - the input stream.
      Returns:
      the file list.
      Throws:
      TransferFailedException - if there was a problem fetching the raw html.
    • cleanLink

      private static String cleanLink(URI baseURI, String link)
    • isAcceptableLink

      private static boolean isAcceptableLink(String link)