in modules/core/src/main/java/org/apache/savan/atom/AtomSubscriptionProcessor.java [221:252]
public ExpirationBean getExpirationBean(SavanMessageContext renewMessage)
throws SavanException {
try {
SOAPEnvelope envelope = renewMessage.getEnvelope();
RenewFeedDocument renewFeedDocument =
RenewFeedDocument.Factory.parse(envelope.getBody().getXMLStreamReader());
// SOAPBody body = envelope.getBody();
//
ExpirationBean expirationBean = new ExpirationBean();
// OMElement renewFeedEle = findElement(AtomConstants.RENEW_FEED, body, true);
// Date expieringTime = getExpirationBeanFromString(findValue(AtomConstants.EXPIRES_ELEMENT, renewFeedEle, true));
expirationBean.setDuration(false);
expirationBean.setDateValue(renewFeedDocument.getRenewFeed().getExpires().getTime());
String subscriberID = getSubscriberID(renewMessage);
if (subscriberID == null) {
String message = "Cannot find the subscriber ID";
throw new SavanException(message);
}
renewMessage
.setProperty(AtomConstants.TransferedProperties.SUBSCRIBER_UUID, subscriberID);
expirationBean.setSubscriberID(subscriberID);
return expirationBean;
} catch (OMException e) {
throw new SavanException(e);
} catch (XmlException e) {
throw new SavanException(e);
}
}