/** Constructor given the call Identifier. *@param callId string call identifier (should be localid@host) *@throws IllegalArgumentException if call identifier is bad. */ public Join(String callId) throws IllegalArgumentException { super(NAME); this.callIdentifier = new CallIdentifier(callId); }
/** Constructor given the call Identifier. *@param callId string call identifier (should be localid@host) *@throws IllegalArgumentException if call identifier is bad. */ public CallID(String callId) throws IllegalArgumentException { super(NAME); this.callIdentifier = new CallIdentifier(callId); }
/** Constructor given the call Identifier. *@param callId string call identifier (should be localid@host) *@throws IllegalArgumentException if call identifier is bad. */ public Replaces(String callId) throws IllegalArgumentException { super(NAME); this.callIdentifier = new CallIdentifier(callId); }
/** * set the CallId field * @param cid String to set. This is the body part of the Call-Id * header. It must have the form localId@host or localId. * @throws IllegalArgumentException if cid is null, not a token, or is * not a token@token. */ public void setCallId(String cid) throws ParseException { try { callIdentifier = new CallIdentifier(cid); } catch (IllegalArgumentException ex) { throw new ParseException(cid, 0); } }
/** * Sets the Call-Id of the InReplyToHeader. The CallId parameter uniquely * identifies a serious of messages within a dialogue. * * @param callId - the string value of the Call-Id of this InReplyToHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the callId value. */ public void setCallId(String callId) throws ParseException { try { this.callId = new CallIdentifier(callId); } catch (Exception e) { throw new ParseException(e.getMessage(), 0); } }