|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Subscriber
key
- value
- public java.lang.Object getProperty(java.lang.String key)
Subscriber
getProperty
in interface Subscriber
key
-
public Filter getFilter()
Subscriber
getFilter
in interface Subscriber
public void setFilter(Filter filter)
Subscriber
setFilter
in interface Subscriber
filter
- public java.lang.String getId()
Subscriber
getId
in interface Subscriber
public void setId(java.lang.String id)
Subscriber
setId
in interface Subscriber
id
- public boolean doesMessageBelongToTheFilter(SavanMessageContext smc) throws SavanException
Subscriber
doesMessageBelongToTheFilter
in interface Subscriber
smc
-
SavanException
public void processPublication(SavanMessageContext publication, PublicationReport report) throws SavanException
processPublication
in interface Subscriber
report
-
SavanException
public abstract void setSubscriptionEndingTime(java.util.Date subscriptionEndingTime)
Subscriber
setSubscriptionEndingTime
in interface Subscriber
subscriptionEndingTime
- public abstract void renewSubscription(ExpirationBean bean)
Subscriber
renewSubscription
in interface Subscriber
bean
- 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 |