org.japtproxy.fetcher
Interface Fetcher

All Known Implementing Classes:
FetcherFtp, FetcherHttp

public interface Fetcher

The Fetcher interface defines methods used to fetch external resources.

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

Method Summary
 FetchedResource fetch(java.net.URL targetResource, long lastModified)
          Fetches an external resource.
 

Method Detail

fetch

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

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.