public void writeExternal(ObjectOutput out) throws IOException { out.writeLong(calleeCSeq); out.writeLong(callerCSeq); out.writeUTF(calleeContact.toString()); out.writeUTF(callerContact.toString()); out.writeInt(calleeRouteSet.size()); Iterator<javax.sip.address.Address> i = calleeRouteSet.iterator(); while (i.hasNext()) { javax.sip.address.Address a = i.next(); out.writeUTF(a.toString()); } out.writeInt(callerRouteSet.size()); i = callerRouteSet.iterator(); while (i.hasNext()) { javax.sip.address.Address a = i.next(); out.writeUTF(a.toString()); } out.writeUTF(toHeader.getAddress().toString()); out.writeUTF(toHeader.getTag()); out.writeUTF(fromHeader.getAddress().toString()); out.writeUTF(fromHeader.getTag()); out.writeUTF(callId); }
public String toString() { // Returns the value of this address as a String. The resulting string // must be a valid value of a SIP From or To header. // To/From are parametrable. StringBuffer retval = new StringBuffer(); retval.append(address.toString()); //excluding the parameters already present in the address uri if ( parameters!= null) { for(Map.Entry<java.lang.String, String> entry : parameters.entrySet()) { if((!(address.getURI() instanceof Parameters)) || ((Parameters)address.getURI()).getParameter(entry.getKey()) == null) { String value = entry.getValue(); if(value != null && value.length() > 0) { retval.append(PARAM_SEPARATOR).append(entry.getKey()).append(PARAM_NAME_VALUE_SEPARATOR).append(value); } else { retval.append(PARAM_SEPARATOR).append(entry.getKey()); } } } } return retval.toString(); }
dialogMetaData.put(REMOTE_TARGET, getRemoteTarget().toString()); } else { dialogMetaData.put(REMOTE_TARGET, null);
toAddress = getAddressFactory().createAddress(backupAddress.toString());