cgl.narada.wsinfra.wse.matching
Class SubscriptionPolicies

java.lang.Object
  extended bycgl.narada.wsinfra.wse.matching.SubscriptionPolicies

public class SubscriptionPolicies
extends Object

This class maintains policies regarding subscriptions. This include elements such as the maximum expiry interval, maximu duration of renewals, evaluation of filter constraint restrictions etc.


Constructor Summary
SubscriptionPolicies()
           
 
Method Summary
 Calendar getExpiry(Calendar expiresAt)
          Retrieve the expiry interval based on the subscription policies.
static SubscriptionPolicies getInstance()
           
 Calendar getRenewal(Calendar expiresAt)
          Retrieve the renewal interval based on the subscription policies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionPolicies

public SubscriptionPolicies()
Method Detail

getInstance

public static SubscriptionPolicies getInstance()

getExpiry

public Calendar getExpiry(Calendar expiresAt)
Retrieve the expiry interval based on the subscription policies. Subscriptions are valid for 3 months initially by default. However, we return the maxExpiry time if expiresAt== null or is beyond maxExpiry


getRenewal

public Calendar getRenewal(Calendar expiresAt)
Retrieve the renewal interval based on the subscription policies. Subscriptions are renewable for upto 3 months initially by default. However, we return the maxRenewal time if expiresAt== null or is beyond maxRenewal



bottom">