Class HTTPDirectoryLister

java.lang.Object
noaa.coastwatch.gui.open.AbstractDirectoryLister
noaa.coastwatch.gui.open.HTTPDirectoryLister
All Implemented Interfaces:
Cloneable, DirectoryLister

@Deprecated public class HTTPDirectoryLister extends AbstractDirectoryLister
Deprecated.
The HTTPDirectoryLister lists directory contents over an HTTP connection. The directory name used must be a valid HTTP protocol URL (ie: start with http://). The URL contents must be an HTTP server directory listing rather than a normal web page. The HTML content of the directory listing is parsed to extract the file and directory names. A custom filter may be set to filter the directory entries returned by the lister.
Since:
3.2.0
Author:
Peter Hollemans
  • Constructor Details

    • HTTPDirectoryLister

      public HTTPDirectoryLister()
      Deprecated.
  • Method Details

    • setRefFilter

      public void setRefFilter(StringFilter filter)
      Deprecated.
      Sets the directory entry filter. If set, each A tag HREF attribute that is to be added to the list of directory entries is filtered through the string filter before creating the directory entry. If the filter returns null for a given HREF attribute, the corresponding directory entry is skipped.
      Parameters:
      filter - the new filter or null for no filtering (the default).
    • getParent

      public String getParent(String name)
      Deprecated.
      Description copied from interface: DirectoryLister
      Gets the parent directory name for the specified directory.
      Parameters:
      name - the name of the directory to get the parent.
      Returns:
      the parent directory. If the directory has no parent, the directory itself is returned.
    • getChild

      public String getChild(String parent, String child)
      Deprecated.
      Description copied from interface: DirectoryLister
      Gets the full child directory name for the specified parent and child.
      Parameters:
      parent - the parent base directory.
      child - the child directory within the parent.
      Returns:
      the full child directory as a concatentation of parent and child.
    • buildEntryList

      protected List buildEntryList(String name) throws IOException
      Deprecated.
      Description copied from class: AbstractDirectoryLister
      Builds the list of directory entries.
      Specified by:
      buildEntryList in class AbstractDirectoryLister
      Throws:
      IOException - if an error occurred getting the entries for the new directory.
    • refresh

      public void refresh() throws IOException
      Deprecated.
      Description copied from class: AbstractDirectoryLister
      Refreshes the entry list based on the current directory name.
      Specified by:
      refresh in interface DirectoryLister
      Overrides:
      refresh in class AbstractDirectoryLister
      Throws:
      IOException - if an error occurred getting the entries for the new directory.
    • main

      public static void main(String[] argv) throws Exception
      Deprecated.
      Tests this class.
      Parameters:
      argv - the array of command line parameters.
      Throws:
      Exception