1 17 package org.apache.excalibur.source.impl; 18 19 import java.io.IOException ; 20 import java.net.MalformedURLException ; 21 import java.net.URL ; 22 import java.util.Map ; 23 24 import org.apache.avalon.framework.thread.ThreadSafe; 25 import org.apache.excalibur.source.Source; 26 import org.apache.excalibur.source.SourceFactory; 27 28 38 public final class FTPSourceFactory extends URLSourceFactory implements SourceFactory, ThreadSafe 39 { 40 41 public FTPSourceFactory() 42 { 43 super(); 44 } 45 46 49 protected Source createURLSource( final URL url, final Map parameters ) 50 throws MalformedURLException , IOException 51 { 52 URLSource result = new FTPSource(); 53 result.init(url, parameters); 54 return result; 55 } 56 57 } 58 | Popular Tags |