Methods Summary |
---|
public java.lang.String | encodeBody()Encodes the header content into a String.
String retval = "";
if (address.getAddressType() != Address.NAME_ADDR) {
retval += Separators.LESS_THAN;
}
retval += address.encode();
if (address.getAddressType() != Address.NAME_ADDR) {
retval += Separators.GREATER_THAN;
}
retval += encodeWithSep();
return retval;
|
public boolean | equals(java.lang.Object otherHeader)Compares two ToHeader headers for equality.
try {
if (!otherHeader.getClass().equals(this.getClass())) {
return false;
}
return super.equals(otherHeader);
} finally {
// System.out.println("equals " + retval + exitpoint);
}
|
public java.lang.String | getTag()Gets the tag parameter from the address parm list.
return getParameter(TAG);
|
public boolean | hasTag()Returns true if tag is present.
return hasParameter(TAG);
|
public void | removeTag()Removes the tag field.
removeParameter(TAG);
|
public void | setTag(java.lang.String t)Sets the tag member.
setParameter(TAG, t);
|