public interface ReplacesHeader extends Header, Parameters
The syntax of the Replaces header is described as follows: Replaces = "Replaces" HCOLON callid *(SEMI replaces-param) replaces-param = to-tag / from-tag / early-flag / generic-param to-tag = "to-tag" EQUAL token from-tag = "from-tag" EQUAL token early-flag = "early-only" Examples: Replaces: 98732@sip.example.com ;from-tag=r33th4x0r ;to-tag=ff87ff Replaces: 12adf2f34456gs5;to-tag=12345;from-tag=54321;early-only Replaces: 87134@171.161.34.23;to-tag=24796;from-tag=0
Modifier and Type | Method and Description |
---|---|
String |
getCallId()
Returns the Call-Id of ReplacesHeader.
|
String |
getFromTag()
Gets the from tag of ReplacesHeader.
|
String |
getToTag()
Gets to tag of ReplacesHeader.
|
boolean |
isEarlyOnly()
Determine if early only parameter is present in the ReplacesHeader.
|
void |
setCallId(String callId)
Sets the Call-Id of the ReplacesHeader.
|
void |
setEarlyOnly(boolean earlyOnly)
Sets the early only parameter in the ReplacesHeader.
|
void |
setFromTag(String tag)
Sets the from tag parameter of the ReplacesHeader.
|
void |
setToTag(String tag)
Sets the to tag parameter of the ReplacesHeader.
|
getParameter, getParameterNames, removeParameter, setParameter
static final String NAME
void setCallId(String callId) throws ParseException
callId
- the string value of the Call-Id of this ReplacesHeader.ParseException
- which signals that an error has been reached unexpectedly while
parsing the callId value.String getCallId()
void setFromTag(String tag) throws ParseException
tag
- the from tag of the ReplacesHeader.ParseException
- which signals that an error has been reached unexpectedly while
parsing the from tag value.String getFromTag()
void setToTag(String tag) throws ParseException
tag
- the new to tag of the ReplacesHeader.ParseException
- which signals that an error has been reached unexpectedly while
parsing the to tag value.String getToTag()
boolean isEarlyOnly()
void setEarlyOnly(boolean earlyOnly)
earlyOnly
- true to add early-only parameter, false to remove it.