public void sendEventData()

in modules/core/src/main/java/org/apache/savan/atom/AtomSubscriber.java [41:75]


    public void sendEventData(OMElement eventData) throws SavanException {
//		try {
        Date date = new Date();

        boolean expired = false;
        if (subscriptionEndingTime != null && date.after(subscriptionEndingTime))
            expired = true;

        if (expired) {
            String message = "Cant notify the listener since the subscription has been expired";
            log.debug(message);
        }

        atomDataSource.addEntry(id.toString(), eventData);
//			
//			if(feed == null){
//				feed = new Feed(title,id.toString(),author);
//			}
//			feed.addEntry(eventData);
//			
//			if(!atomFile.getParentFile().exists()){
//				atomFile.getParentFile().mkdir();
//			}
//			FileOutputStream out = new FileOutputStream(atomFile);
//			feed.write(out);
//			out.close();
//			System.out.println("Atom file at "+ atomFile + " is updated");
//		} catch (FileNotFoundException e) {
//			throw new SavanException(e);
//		} catch (XMLStreamException e) {
//			throw new SavanException(e);
//		} catch (IOException e) {
//			throw new SavanException(e);
//		}
    }