org.japtproxy.fetcher
Class FetcherFactory

java.lang.Object
  extended by org.japtproxy.fetcher.FetcherFactory

public final class FetcherFactory
extends java.lang.Object

Factory class used to initialize fetcher classes and return their instances.

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

Constructor Summary
FetcherFactory()
           
 
Method Summary
 Fetcher getInstance(java.net.URL targetResource)
          Initializes an fetcher based on the given targetResource.
 void setFetchers(java.util.Map<java.lang.String,Fetcher> fetchers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetcherFactory

public FetcherFactory()
Method Detail

setFetchers

public void setFetchers(java.util.Map<java.lang.String,Fetcher> fetchers)

getInstance

public Fetcher getInstance(java.net.URL targetResource)
Initializes an fetcher based on the given targetResource.

Parameters:
targetResource - the target resource
Returns:
a fetcher instance, or null if no fetcher was found for the specivied targetResource


Copyright © 2006-2008. All Rights Reserved.