pusu.fetcher
Class InputFeedFactory

java.lang.Object
  extended by pusu.fetcher.InputFeedFactory

public class InputFeedFactory
extends java.lang.Object

InputFeedFactory luo oikeantyyppisiä noudettavia syötteitä.


Constructor Summary
InputFeedFactory()
           
 
Method Summary
static InputFeed createFeed(java.lang.String feedName, java.net.URL url, int updateInterval)
          Luo uuden noudettavan syötteen.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFeedFactory

public InputFeedFactory()
Method Detail

createFeed

public static InputFeed createFeed(java.lang.String feedName,
                                   java.net.URL url,
                                   int updateInterval)
                            throws FactoryException,
                                   java.lang.IllegalArgumentException,
                                   java.lang.NullPointerException
Luo uuden noudettavan syötteen.

Parameters:
feedName - Syötteen nimi.
url - Osoite, josta syöte noudetaan.
updateInterval - Syötteen päivitysväli sekunteina.
Returns:
Noudettava syöte.
Throws:
FactoryException - InputFeedFactory ei osaa luoda halutulle syötteelle konkreettisista toteutusta.
java.lang.IllegalArgumentException - jos annettu päivitysväli on epäpositiivinen.
java.lang.NullPointerException