Code example for AttributesImpl

Methods: addAttribute

0
            element("title", AtomUtils.getFeedTitle(map));
 
            //TODO: Revist URN scheme 
            element("id", AtomUtils.getFeedURI(map));
 
            AttributesImpl atts = new AttributesImpl();
            atts.addAttribute(null, "href", "href", null, AtomUtils.getFeedURL(map));
            atts.addAttribute(null, "rel", "rel", null, "self");
            element("link", null, atts);
 
            //updated 
            element("updated", AtomUtils.dateToRFC3339(new Date()));
 
            //entries 
            try { 
                encodeEntries(map);
            }  
            catch (IOException e) {
                throw new RuntimeException(e);
            }