public void renewSubscription()

in modules/core/src/main/java/org/apache/savan/subscription/SubscriptionProcessor.java [48:60]


    public void renewSubscription(SavanMessageContext renewMessage) throws SavanException {
        SubscriberStore store = renewMessage.getSubscriberStore();
        if (store == null)
            throw new SavanException("AbstractSubscriber store not found");

        ExpirationBean bean = getExpirationBean(renewMessage);
        Subscriber subscriber = store.retrieve(bean.getSubscriberID());
        if (subscriber == null) {
            throw new SavanException("Given subscriber is not present");
        }

        subscriber.renewSubscription(bean);
    }