return feed;
}
private Link parseLink(Feed feedbaseURI , Entry entry, URL baseURI, Element eLink) {
Link link = new Link();
String att = eLink.getAttributeValue("rel");//getAtomNamespace()); DONT KNOW WHY DOESN'T WORK
if (att!=null) {
link.setRel(att);
}
att = eLink.getAttributeValue("type");//getAtomNamespace()); DONT KNOW WHY DOESN'T WORK
if (att!=null) {
link.setType(att);
}
att = eLink.getAttributeValue("href");//getAtomNamespace()); DONT KNOW WHY DOESN'T WORK
if (att!=null) {
if(ROME.isRelativeURI(att))
{
// TODO: @FID37 Improper relative link resolution in Atom10Parser
ROME.failed(Failure.ROME37);
}
link.setHref(resolveURI(baseURI, eLink, att));
}
// TODO: @FID38 ATOM 1.0 Entry links parsing
if(ROME.hasAtomLinkTitle(eLink))
ROME.failed(Failure.ROME38);
att = eLink.getAttributeValue("hreflang");//getAtomNamespace()); DONT KNOW WHY DOESN'T WORK
if (att!=null) {
link.setHreflang(att);
}
att = eLink.getAttributeValue("length");//getAtomNamespace()); DONT KNOW WHY DOESN'T WORK
if (att!=null) {
link.setLength(Long.parseLong(att));
}
return link;
}