XmlSubscribedFeedsEntryGDataSerializerpublic class XmlSubscribedFeedsEntryGDataSerializer extends com.google.wireless.gdata.serializer.xml.XmlEntryGDataSerializer Serializes the SubscribedFeedEntry into the Atom XML format. |
Fields Summary |
---|
public static final String | NAMESPACE_GSYNC | public static final String | NAMESPACE_GSYNC_URI |
Methods Summary |
---|
protected void | declareExtraEntryNamespaces(org.xmlpull.v1.XmlSerializer serializer)
serializer.setPrefix(NAMESPACE_GSYNC, NAMESPACE_GSYNC_URI);
| protected com.google.wireless.gdata.subscribedfeeds.data.SubscribedFeedsEntry | getSubscribedFeedsEntry()
return (SubscribedFeedsEntry) getEntry();
| private static void | serializeClientToken(org.xmlpull.v1.XmlSerializer serializer, java.lang.String clientToken)
if (StringUtils.isEmpty(clientToken)) {
clientToken = "";
}
serializer.startTag(NAMESPACE_GSYNC_URI, "clientToken");
serializer.text(clientToken);
serializer.endTag(NAMESPACE_GSYNC_URI, "clientToken");
| protected void | serializeExtraEntryContents(org.xmlpull.v1.XmlSerializer serializer, int format)
SubscribedFeedsEntry entry = getSubscribedFeedsEntry();
serializeFeedUrl(serializer, entry.getSubscribedFeed());
serializeClientToken(serializer, entry.getClientToken());
serializeRoutingInfo(serializer, entry.getRoutingInfo());
| private static void | serializeFeedUrl(org.xmlpull.v1.XmlSerializer serializer, com.google.wireless.gdata.subscribedfeeds.data.FeedUrl feedUrl)
serializer.startTag(NAMESPACE_GSYNC_URI, "feedurl");
serializer.attribute(null /* ns */, "value", feedUrl.getFeed());
serializer.attribute(null /* ns */, "service", feedUrl.getService());
serializer.attribute(null /* ns */, "authtoken", feedUrl.getAuthToken());
serializer.endTag(NAMESPACE_GSYNC_URI, "feedurl");
| private static void | serializeRoutingInfo(org.xmlpull.v1.XmlSerializer serializer, java.lang.String routingInfo)
if (StringUtils.isEmpty(routingInfo)) {
routingInfo = "";
}
serializer.startTag(NAMESPACE_GSYNC_URI, "routingInfo");
serializer.text(routingInfo);
serializer.endTag(NAMESPACE_GSYNC_URI, "routingInfo");
|
|