out.output(feed, writer);
}
}
public SyndEntry eventToEntry(TransactionEvent evt) throws Exception{
SyndEntry entry = new SyndEntryImpl();
entry.setTitle("Changes to " + evt.getLayerName().getLocalPart());
// entry.setLink("http://geoserver.org/a");
entry.setPublishedDate(new Date());
//encode the content as the wfs transcation
SyndContent description = new SyndContentImpl();
description.setType("text/xml");
description.setValue(encodeTransaction( evt ));
// attach the content to the entry
List contents = new ArrayList();
contents.add(description);
entry.setContents(contents);
// Add the georss info
ReferencedEnvelope refenv = evt.getAffectedFeatures().getBounds();
GeoRSSModule geoInfo = new GMLModuleImpl();
double minLat = refenv.getMinimum(0),
minLong = refenv.getMinimum(1),
maxLat = refenv.getMaximum(0),
maxLong = refenv.getMaximum(1);
Envelope bounds = new Envelope(minLat, minLong, maxLat, maxLong);
geoInfo.setGeometry(bounds);
List modules = entry.getModules();
modules.add(geoInfo);
entry.setModules(modules);
return entry;
}