RESTful 請求工具:Contact.java

package com.emprogria.rsContact; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Contact { private String msn; private String realName; private String tel; public Contact() { } public Contact(String msn, String realName, String tel) { this.msn = msn; this.realName = realName; this.tel = tel; } /** * @return the msn */ public String getMsn() { return msn; } /** * @param msn the msn to set */ public void setMsn(String msn) { this.msn = msn; } /** * @return the realName */ public String getRealName() { return realName; } /** * @param realName the realName to set */ public void setRealName(String realName) { this.realName = realName; } /** * @return the tel */ public String getTel() { return tel; } /** * @param tel the tel to set */ public void setTel(String tel) { this.tel = tel; } @Override public String toString() { return this.msn + "|" + this.realName + "|" + this.tel; } }