|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ivy.util.url.ApacheURLLister
public class ApacheURLLister
Utility class which helps to list urls under a given url. This has been tested with Apache 1.3.33 server listing, as the one used at ibiblio, and with Apache 2.0.53 server listing, as the one on mirrors.sunsite.dk.
| Constructor Summary | |
|---|---|
ApacheURLLister()
|
|
| Method Summary | |
|---|---|
java.util.List |
listAll(java.net.URL url)
Returns a list of sub urls of the given url. |
java.util.List |
listDirectories(java.net.URL url)
Returns a list of sub 'directories' of the given url. |
java.util.List |
listFiles(java.net.URL url)
Returns a list of sub 'files' (in opposition to directories) of the given url. |
java.util.List |
retrieveListing(java.net.URL url,
boolean includeFiles,
boolean includeDirectories)
Retrieves a List of URLs corresponding to the files and/or directories found
at the supplied base URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApacheURLLister()
| Method Detail |
|---|
public java.util.List listAll(java.net.URL url)
throws java.io.IOException
url - The base URL from which to retrieve the listing.
java.io.IOException - If an error occures retrieving the HTML.
public java.util.List listDirectories(java.net.URL url)
throws java.io.IOException
url - The base URL from which to retrieve the listing.
java.io.IOException - If an error occures retrieving the HTML.
public java.util.List listFiles(java.net.URL url)
throws java.io.IOException
url - The base URL from which to retrieve the listing.
java.io.IOException - If an error occures retrieving the HTML.
public java.util.List retrieveListing(java.net.URL url,
boolean includeFiles,
boolean includeDirectories)
throws java.io.IOException
List of URLs corresponding to the files and/or directories found
at the supplied base URL.
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.
List of URLs.
java.io.IOException - If an error occures retrieving the HTML.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||