org.japtproxy.fetcher
Class FetcherFtp

java.lang.Object
  extended by org.japtproxy.fetcher.FetcherFtp
All Implemented Interfaces:
Fetcher

public class FetcherFtp
extends java.lang.Object
implements Fetcher

The FetcherFtp is responsible for fetching files from ftp resources.

Version:
$LastChangedRevision:79 $
Author:
Oliver J. Siegmar

Constructor Summary
FetcherFtp()
           
 
Method Summary
 FetchedResourceFtp fetch(java.net.URL targetResource, long lastModified)
          Fetches an external resource.
 void setDataTimeout(int dataTimeout)
           
 void setSocketTimeout(int socketTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetcherFtp

public FetcherFtp()
Method Detail

setSocketTimeout

public void setSocketTimeout(int socketTimeout)

setDataTimeout

public void setDataTimeout(int dataTimeout)

fetch

public FetchedResourceFtp fetch(java.net.URL targetResource,
                                long lastModified)
                         throws java.io.IOException,
                                ResourceUnavailableException
Fetches an external resource.

Specified by:
fetch in interface Fetcher
Parameters:
targetResource - the resource to fetch.
lastModified - the lastModified timestamp of the local object.
Returns:
the fetched resource.
Throws:
java.io.IOException - is thrown if the fetch fails.
ResourceUnavailableException - is thrown if the resource was not found.


Copyright © 2006-2008. All Rights Reserved.