|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.savan.subscribers.AbstractSubscriber
Defines a subscriber which is the entity that define a specific subscription in savan. Independent of the protocol type.
| Constructor Summary | |
AbstractSubscriber()
|
|
| Method Summary | |
void |
addProperty(java.lang.String key,
java.lang.Object value)
To add a property to the subscriber. |
boolean |
doesMessageBelongToTheFilter(SavanMessageContext smc)
To check weather a certain message complies with the filter. |
Filter |
getFilter()
To get the Filter object |
java.lang.String |
getId()
To get the subscriber Id. |
java.lang.Object |
getProperty(java.lang.String key)
To get a property from the Subscriber. |
void |
processPublication(SavanMessageContext publication,
PublicationReport report)
This method first checks weather the passed message complies with the current filter. |
abstract void |
renewSubscription(ExpirationBean bean)
To renew a subscription. |
protected abstract void |
sendPublication(SavanMessageContext publication,
PublicationReport report)
This should be used by based classes to sendThe publication in its own manner |
void |
setFilter(Filter filter)
To set the Filter object |
void |
setId(java.lang.String id)
To set the subscriber Id |
abstract void |
setSubscriptionEndingTime(java.util.Date subscriptionEndingTime)
To set the Subscription expiration time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractSubscriber()
| Method Detail |
public void addProperty(java.lang.String key,
java.lang.Object value)
Subscriber
addProperty in interface Subscriberkey - value - public java.lang.Object getProperty(java.lang.String key)
Subscriber
getProperty in interface Subscriberkey -
public Filter getFilter()
Subscriber
getFilter in interface Subscriberpublic void setFilter(Filter filter)
Subscriber
setFilter in interface Subscriberfilter - public java.lang.String getId()
Subscriber
getId in interface Subscriberpublic void setId(java.lang.String id)
Subscriber
setId in interface Subscriberid -
public boolean doesMessageBelongToTheFilter(SavanMessageContext smc)
throws SavanException
Subscriber
doesMessageBelongToTheFilter in interface Subscribersmc -
SavanException
public void processPublication(SavanMessageContext publication,
PublicationReport report)
throws SavanException
processPublication in interface Subscriberreport -
SavanExceptionpublic abstract void setSubscriptionEndingTime(java.util.Date subscriptionEndingTime)
Subscriber
setSubscriptionEndingTime in interface SubscribersubscriptionEndingTime - public abstract void renewSubscription(ExpirationBean bean)
Subscriber
renewSubscription in interface Subscriberbean -
protected abstract void sendPublication(SavanMessageContext publication,
PublicationReport report)
throws SavanException
publication - report -
SavanException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||