}
info(resultFeed.getTitle().getPlainText());
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
ContactEntry entry = resultFeed.getEntries().get(i);
info("\t" + entry.getTitle().getPlainText());
info("Email addresses:");
for (Email email : entry.getEmailAddresses()) {
info(" " + email.getAddress());
if (email.getRel() != null) {
info(" rel:" + email.getRel());
}
if (email.getLabel() != null) {
info(" label:" + email.getLabel());
}
}
info("IM addresses:");
for (Im im : entry.getImAddresses()) {
info(" " + im.getAddress());
if (im.getLabel() != null) {
info(" label:" + im.getLabel());
}
if (im.getLabel() != null) {
info(" rel:" + im.getLabel());
}
if (im.getProtocol() != null) {
System.out.print(" protocol:" + im.getProtocol());
}
}
info("Groups:");
for (GroupMembershipInfo group : entry
.getGroupMembershipInfos()) {
String groupHref = group.getHref();
info(" Id: " + groupHref);
}
info("Extended Properties:");
for (ExtendedProperty property : entry
.getExtendedProperties()) {
if (property.getValue() != null) {
info(" " + property.getName() + "(value) = "
+ property.getValue());
} else if (property.getXmlBlob() != null) {
info(" " + property.getName() + "(xmlBlob)= "
+ property.getXmlBlob().getBlob());
}
}
String photoLink = entry.getContactPhotoLink().getHref();
info("Photo Link: " + photoLink);
// if (photoLink.getEtag() != null) {
// System.out.println("Contact Photo's ETag: "
// + photoLink.getEtag());