org.apache.ivy.util.url
public class ApacheURLLister extends Object
Method Summary | |
---|---|
List | listAll(URL url)
Returns a list of sub urls of the given url. |
List | listDirectories(URL url)
Returns a list of sub 'directories' of the given url. |
List | listFiles(URL url)
Returns a list of sub 'files' (in opposition to directories) of the given url. |
List | retrieveListing(URL url, boolean includeFiles, boolean includeDirectories)
Retrieves a List of URLs corresponding to the files and/or directories found
at the supplied base URL.
|
Parameters: url The base URL from which to retrieve the listing.
Returns: a list of sub urls of the given url.
Throws: IOException If an error occures retrieving the HTML.
Parameters: url The base URL from which to retrieve the listing.
Returns: a list of sub 'directories' of the given url.
Throws: IOException If an error occures retrieving the HTML.
Parameters: url The base URL from which to retrieve the listing.
Returns: a list of sub 'files' of the given url.
Throws: IOException If an error occures retrieving the HTML.
Parameters: url The base URL from which to retrieve the listing. includeFiles If true include files in the returned list. includeDirectories If true include directories in the returned list.
Returns: A List of URLs.
Throws: IOException If an error occures retrieving the HTML.