KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > resolver > ApacheHttpURLLister


1 /*
2  * This file is subject to the license found in LICENCE.TXT in the root directory of the project.
3  *
4  * #SNAPSHOT#
5  */

6 package fr.jayasoft.ivy.resolver;
7
8 import java.io.IOException JavaDoc;
9 import java.net.URL JavaDoc;
10 import java.util.List JavaDoc;
11
12 import fr.jayasoft.ivy.url.ApacheURLLister;
13
14 public class ApacheHttpURLLister implements URLLister {
15     private ApacheURLLister _lister = new ApacheURLLister();
16     public boolean accept(String JavaDoc pattern) {
17         return pattern.startsWith("http");
18     }
19     public List JavaDoc listAll(URL JavaDoc url) throws IOException JavaDoc {
20         return _lister.listAll(url);
21     }
22
23     public String JavaDoc toString() {
24         return "apache http lister";
25     }
26 }
27
Popular Tags