cgl.narada.wsinfra.wse.matching
Class SubscriptionEntry

java.lang.Object
  extended by cgl.narada.wsinfra.wse.matching.SubscriptionEntry

public class SubscriptionEntry
extends Object

This class represents the entry corresponding to subscriptions, within the SubscriptionManagement.


Constructor Summary
protected SubscriptionEntry(String identifier, FilterType filter, Calendar expiresAt, EndpointReferenceType source, EndpointReferenceType sink, EndpointReferenceType endTo, EndpointReferenceType subscriptionManager)
           
 
Method Summary
 EndpointReferenceType getEndTo()
          Gets the Sink's registered endTo for this subscription
 Calendar getExpiresAt()
          Gets the expiry associated with this entry
 FilterType getFilter()
          Gets the Filter associated with this subscription Entry
 String getIdentifier()
          Gets the subscription identifier
 EndpointReferenceType getSink()
          Gets the Sinks which registered this subscription
 EndpointReferenceType getSource()
          Gets the source at which this subscription was registered
 EndpointReferenceType getSubscriptionManager()
          Gets the subscription manager for this subscription
 boolean hasEndTo()
          Checks to see if the EndTo has been specified, so that we can send SubscriptionEnd's if the need arises.
protected  boolean isExpired(Calendar currentTime)
          Check to see if this subscription has expired.
protected  void updateExpiresAt(Calendar expiresAt)
          Update the expiry field for this subscription entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionEntry

protected SubscriptionEntry(String identifier,
                            FilterType filter,
                            Calendar expiresAt,
                            EndpointReferenceType source,
                            EndpointReferenceType sink,
                            EndpointReferenceType endTo,
                            EndpointReferenceType subscriptionManager)
Method Detail

getIdentifier

public String getIdentifier()
Gets the subscription identifier


getFilter

public FilterType getFilter()
Gets the Filter associated with this subscription Entry


getExpiresAt

public Calendar getExpiresAt()
Gets the expiry associated with this entry


updateExpiresAt

protected void updateExpiresAt(Calendar expiresAt)
Update the expiry field for this subscription entry


isExpired

protected boolean isExpired(Calendar currentTime)
Check to see if this subscription has expired. This method returns true if the subscription has indeed expired.


getSource

public EndpointReferenceType getSource()
Gets the source at which this subscription was registered


getSink

public EndpointReferenceType getSink()
Gets the Sinks which registered this subscription


getEndTo

public EndpointReferenceType getEndTo()
Gets the Sink's registered endTo for this subscription


hasEndTo

public boolean hasEndTo()
Checks to see if the EndTo has been specified, so that we can send SubscriptionEnd's if the need arises.


getSubscriptionManager

public EndpointReferenceType getSubscriptionManager()
Gets the subscription manager for this subscription



For comments and suggestions please send e-mail to The NaradaBrokering Project