protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); Element eCloud = eChannel.getChild("cloud",getRSSNamespace()); if (eCloud!=null) { Cloud cloud = new Cloud(); String att = eCloud.getAttributeValue("domain");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setDomain(att); } att = eCloud.getAttributeValue("port");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPort(Integer.parseInt(att.trim())); } att = eCloud.getAttributeValue("path");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPath(att); } att = eCloud.getAttributeValue("registerProcedure");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setRegisterProcedure(att); } att = eCloud.getAttributeValue("protocol");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setProtocol(att); } channel.setCloud(cloud); } return channel; }
protected Element generateCloud(Cloud cloud) { Element eCloud = new Element("cloud",getFeedNamespace()); if (cloud.getDomain() != null) { eCloud.setAttribute(new Attribute("domain", cloud.getDomain())); } if (cloud.getPort() != 0) { eCloud.setAttribute(new Attribute("port", String.valueOf(cloud.getPort()))); } if (cloud.getPath() != null) { eCloud.setAttribute(new Attribute("path", cloud.getPath())); } if (cloud.getRegisterProcedure() != null) { eCloud.setAttribute(new Attribute("registerProcedure", cloud.getRegisterProcedure())); } if (cloud.getProtocol() != null) { eCloud.setAttribute(new Attribute("protocol", cloud.getProtocol())); } return eCloud; }
protected Element generateCloud(Cloud cloud) { Element eCloud = new Element("cloud",getFeedNamespace()); if (cloud.getDomain() != null) { eCloud.setAttribute(new Attribute("domain", cloud.getDomain())); } if (cloud.getPort() != 0) { eCloud.setAttribute(new Attribute("port", String.valueOf(cloud.getPort()))); } if (cloud.getPath() != null) { eCloud.setAttribute(new Attribute("path", cloud.getPath())); } if (cloud.getRegisterProcedure() != null) { eCloud.setAttribute(new Attribute("registerProcedure", cloud.getRegisterProcedure())); } if (cloud.getProtocol() != null) { eCloud.setAttribute(new Attribute("protocol", cloud.getProtocol())); } return eCloud; }
protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); Element eCloud = eChannel.getChild("cloud",getRSSNamespace()); if (eCloud!=null) { Cloud cloud = new Cloud(); String att = eCloud.getAttributeValue("domain");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setDomain(att); } att = eCloud.getAttributeValue("port");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPort(Integer.parseInt(att.trim())); } att = eCloud.getAttributeValue("path");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPath(att); } att = eCloud.getAttributeValue("registerProcedure");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setRegisterProcedure(att); } att = eCloud.getAttributeValue("protocol");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setProtocol(att); } channel.setCloud(cloud); } return channel; }
protected Element generateCloud(Cloud cloud) { Element eCloud = new Element("cloud",getFeedNamespace()); if (cloud.getDomain() != null) { eCloud.setAttribute(new Attribute("domain", cloud.getDomain())); } if (cloud.getPort() != 0) { eCloud.setAttribute(new Attribute("port", String.valueOf(cloud.getPort()))); } if (cloud.getPath() != null) { eCloud.setAttribute(new Attribute("path", cloud.getPath())); } if (cloud.getRegisterProcedure() != null) { eCloud.setAttribute(new Attribute("registerProcedure", cloud.getRegisterProcedure())); } if (cloud.getProtocol() != null) { eCloud.setAttribute(new Attribute("protocol", cloud.getProtocol())); } return eCloud; }
protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); Element eCloud = eChannel.getChild("cloud",getRSSNamespace()); if (eCloud!=null) { Cloud cloud = new Cloud(); String att = eCloud.getAttributeValue("domain");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setDomain(att); } att = eCloud.getAttributeValue("port");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPort(Integer.parseInt(att.trim())); } att = eCloud.getAttributeValue("path");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPath(att); } att = eCloud.getAttributeValue("registerProcedure");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setRegisterProcedure(att); } att = eCloud.getAttributeValue("protocol");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setProtocol(att); } channel.setCloud(cloud); } return channel; }
protected Element generateCloud(Cloud cloud) { Element eCloud = new Element("cloud",getFeedNamespace()); if (cloud.getDomain() != null) { eCloud.setAttribute(new Attribute("domain", cloud.getDomain())); } if (cloud.getPort() != 0) { eCloud.setAttribute(new Attribute("port", String.valueOf(cloud.getPort()))); } if (cloud.getPath() != null) { eCloud.setAttribute(new Attribute("path", cloud.getPath())); } if (cloud.getRegisterProcedure() != null) { eCloud.setAttribute(new Attribute("registerProcedure", cloud.getRegisterProcedure())); } if (cloud.getProtocol() != null) { eCloud.setAttribute(new Attribute("protocol", cloud.getProtocol())); } return eCloud; }
protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); Element eCloud = eChannel.getChild("cloud",getRSSNamespace()); if (eCloud!=null) { Cloud cloud = new Cloud(); String att = eCloud.getAttributeValue("domain");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setDomain(att); } att = eCloud.getAttributeValue("port");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPort(Integer.parseInt(att.trim())); } att = eCloud.getAttributeValue("path");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setPath(att); } att = eCloud.getAttributeValue("registerProcedure");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setRegisterProcedure(att); } att = eCloud.getAttributeValue("protocol");//getRSSNamespace()); DONT KNOW WHY DOESN'T WORK if (att!=null) { cloud.setProtocol(att); } channel.setCloud(cloud); } return channel; }
createStringProperty(r_feed, NS_RSS + "cloudUpdateProtocol", feed.getCloud().getProtocol()); createStringProperty(r_feed, NS_RSS + "cloudUpdateDomain", feed.getCloud().getDomain()); createStringProperty(r_feed, NS_RSS + "cloudUpdatePath", feed.getCloud().getPath()); createStringProperty(r_feed, NS_RSS + "cloudUpdateProcedure", feed.getCloud().getRegisterProcedure()); createIntProperty(r_feed, NS_RSS + "cloudUpdatePort", feed.getCloud().getPort());
createStringProperty(r_feed, NS_RSS + "cloudUpdateProtocol", feed.getCloud().getProtocol()); createStringProperty(r_feed, NS_RSS + "cloudUpdateDomain", feed.getCloud().getDomain()); createStringProperty(r_feed, NS_RSS + "cloudUpdatePath", feed.getCloud().getPath()); createStringProperty(r_feed, NS_RSS + "cloudUpdateProcedure", feed.getCloud().getRegisterProcedure()); createIntProperty(r_feed, NS_RSS + "cloudUpdatePort", feed.getCloud().getPort());