cgl.narada.wsinfra.wse.matching
Class SubscriptionPolicies
java.lang.Object
cgl.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionPolicies
public SubscriptionPolicies()
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