/** * Encode the message except for the body. * * @return The string except for the body. */ public StringBuilder encodeMessage(StringBuilder retval) { // String retval; if (statusLine != null) { statusLine.encode(retval); super.encodeSIPHeaders(retval); } else { retval = super.encodeSIPHeaders(retval); } return retval; }