pusu.fetcher
Class InputFeedFactory
java.lang.Object
pusu.fetcher.InputFeedFactory
public class InputFeedFactory
- extends java.lang.Object
InputFeedFactory luo oikeantyyppisiä noudettavia syötteitä.
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 |
InputFeedFactory
public InputFeedFactory()
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