net.sf.flock.impl
Class SimpleSubscriptionManager
java.lang.Object
|
+--net.sf.flock.support.AbstractSubscriptionManager
|
+--net.sf.flock.impl.SimpleSubscriptionManager
- All Implemented Interfaces:
- FeedFactoryI, SubscriptionManagerI
- Direct Known Subclasses:
- PersistentSubscriptionManager
- public class SimpleSubscriptionManager
- extends AbstractSubscriptionManager
- implements FeedFactoryI
- Version:
- $Revision: 1.4 $
- Author:
- $Author: phraktle $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSubscriptionManager
public SimpleSubscriptionManager()
createFeed
public FeedI createFeed(SubscriptionInfoI subscriptionInfoI)
- Specified by:
createFeed
in interface FeedFactoryI
addSubscription
protected void addSubscription(SubscriptionI subscription)
throws FlockResourceException
FlockResourceException
getSubscription
public SubscriptionI getSubscription(java.net.URL location)
throws FlockResourceException
- Description copied from interface:
SubscriptionManagerI
- Get a given a subscription.
- Specified by:
getSubscription
in interface SubscriptionManagerI
- Parameters:
location
- subscription location
- Returns:
- SubscriptionI
- Throws:
FlockResourceException
getSubscriptions
protected java.util.Collection getSubscriptions()
getSubscriptionInfos
public java.util.Collection getSubscriptionInfos()
throws FlockResourceException
- Description copied from interface:
SubscriptionManagerI
- Get lightweight information about all subscriptions.
- Specified by:
getSubscriptionInfos
in interface SubscriptionManagerI
- Returns:
- Collection of SubscriptionInfoI objects
- Throws:
FlockResourceException
unsubscribe
public void unsubscribe(java.net.URL location)
throws FlockResourceException
- Description copied from interface:
SubscriptionManagerI
- Remove a subscription.
- Specified by:
unsubscribe
in interface SubscriptionManagerI
- Parameters:
location
- subscription location
- Throws:
FlockResourceException
refresh
public void refresh(java.net.URL location)
throws FlockResourceException
- Description copied from interface:
SubscriptionManagerI
- Refresh a subscription (synchronously).
- Specified by:
refresh
in interface SubscriptionManagerI
- Parameters:
location
- subscription location
- Throws:
FlockResourceException
findItems
public java.util.Collection findItems(FilterI[] filters)
throws FlockResourceException
- Specified by:
findItems
in interface SubscriptionManagerI
- Parameters:
filters
-
- Returns:
- Collection
- Throws:
FlockResourceException
createSubscription
protected SubscriptionI createSubscription(SubscriptionInfoI subscriptionInfo)
throws FlockResourceException
- Specified by:
createSubscription
in class AbstractSubscriptionManager
FlockResourceException
- See Also:
AbstractSubscriptionManager.createSubscription(net.sf.flock.SubscriptionInfoI)
subscribe
public SubscriptionI[] subscribe(SubscriptionInfoI subscriptionInfo,
boolean load)
throws FlockResourceException
- Specified by:
subscribe
in interface SubscriptionManagerI
- Overrides:
subscribe
in class AbstractSubscriptionManager
FlockResourceException
- See Also:
SubscriptionManagerI.subscribe(net.sf.flock.SubscriptionInfoI, boolean)
getFeedFactory
protected FeedFactoryI getFeedFactory()
- Specified by:
getFeedFactory
in class AbstractSubscriptionManager
- See Also:
AbstractSubscriptionManager.getFeedFactory()
Copyright © 2002-2003 Presence Inc. All Rights Reserved.