Methods Summary |
---|
public java.lang.Object | clone()Clone - do a deep copy.
CallIdHeader retval = new CallIdHeader();
if (this.callIdentifier != null)
retval.callIdentifier = (CallIdentifier)this.callIdentifier.clone();
return retval;
|
public java.lang.String | encode()Gets the encoded version of this id.
return headerName + Separators.COLON + Separators.SP +
callIdentifier.encode() + Separators.NEWLINE;
|
public java.lang.String | encodeBody()Encodes the body part of this header (leave out the hdrName).
if (callIdentifier == null)
return "";
else return callIdentifier.encode();
|
public boolean | equals(java.lang.Object other)Compares two call ids for equality.
if (! this.getClass().equals(other.getClass())) {
return false;
}
CallIdHeader that = (CallIdHeader) other;
return this.callIdentifier.equals(that.callIdentifier);
|
public java.lang.String | getCallId()Gets the Caller Id field. This does the same thing as
encodeBody.
return encodeBody();
|
public CallIdentifier | getCallIdentifer()Gets the call Identifer member.
return callIdentifier;
|
public java.lang.Object | getValue()Gets the caller id header value.
return callIdentifier;
|
public void | setCallId(java.lang.String cid)Sets the CallId field
callIdentifier = new CallIdentifier(cid);
|
public void | setCallIdentifier(CallIdentifier cid)Sets the callIdentifier member.
callIdentifier = cid;
|
public void | setHeaderValue(java.lang.String value)Sets the header value field.
setCallId(value);
|