基于JAINSIP的一个proxy源码
源代码在线查看: contacttag.java
/* * ContactTag.java * * Created on October 4, 2002, 7:17 PM */ package gov.nist.sip.instantmessaging.presence.cpimparser; /** * * @author deruelle * @version 1.0 */ public class ContactTag { private float priority; private String contact; /** Creates new ContactTag */ public ContactTag() { priority=-1; contact=null; } public void setPriority(float priority) { this.priority=priority; } public float getPriority() { return priority; } public void setContact(String contact) { this.contact=contact; } public String getContact() { return contact; } public String toString() { String result=" if (priority!=-1) result+="priority=\""+priority+"\""; result+=" >"; if (contact!=null) result+=contact; result+="\n"; return result; } }