Package noaa.coastwatch.gui.open
Class HTTPDirectoryLister
java.lang.Object
noaa.coastwatch.gui.open.AbstractDirectoryLister
noaa.coastwatch.gui.open.HTTPDirectoryLister
- All Implemented Interfaces:
Cloneable
,DirectoryLister
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface noaa.coastwatch.gui.open.DirectoryLister
DirectoryLister.Entry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List
buildEntryList
(String name) Deprecated.Builds the list of directory entries.Deprecated.Gets the full child directory name for the specified parent and child.Deprecated.Gets the parent directory name for the specified directory.static void
Deprecated.Tests this class.void
refresh()
Deprecated.Refreshes the entry list based on the current directory name.void
setRefFilter
(StringFilter filter) Deprecated.Sets the directory entry filter.Methods inherited from class noaa.coastwatch.gui.open.AbstractDirectoryLister
clear, clone, getDirectory, getEntries, setDirectory
-
Constructor Details
-
HTTPDirectoryLister
public HTTPDirectoryLister()Deprecated.
-
-
Method Details
-
setRefFilter
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
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
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
Deprecated.Description copied from class:AbstractDirectoryLister
Builds the list of directory entries.- Specified by:
buildEntryList
in classAbstractDirectoryLister
- Throws:
IOException
- if an error occurred getting the entries for the new directory.
-
refresh
Deprecated.Description copied from class:AbstractDirectoryLister
Refreshes the entry list based on the current directory name.- Specified by:
refresh
in interfaceDirectoryLister
- Overrides:
refresh
in classAbstractDirectoryLister
- Throws:
IOException
- if an error occurred getting the entries for the new directory.
-
main
Deprecated.Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-