1. bean 代码
package com.base.pf.restful.client;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Podcast implements Serializable {
private static final long serialVersionUID = -8039686696076337053L;
@XmlElement(name = "id")
private Long id;
@XmlElement(name = "title")
private String title;
@XmlElement(name = "linkOnPodcastpedia")
private String linkOnPodcastpedia;
@XmlElement(name = "feed")
private String feed;
@XmlElement(name = "description")
private String description;
public Podcast(String title, String linkOnPodcastpedia, String feed,
String description) {
this.title = title;