|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A CSeq header field in a request contains a single decimal sequence number and the request method. The CSeq header field serves to identify and order transactions within a dialog, to provide a means to uniquely identify transactions, and to differentiate between new requests and request retransmissions. Two CSeq header fields are considered equal if the sequence number and the request method are identical.
Forked Requests:
Forked Requests must have the same CSeqHeader as there would be ambiguity
otherwise between these forked Requests and later BYE Requests issued by the
client user agent.
For Example:
CSeq: 4711 INVITE
Field Summary | |
static java.lang.String |
NAME
Name of the CSeqHeader |
Method Summary | |
java.lang.String |
getMethod()
Gets the method of CSeqHeader |
int |
getSequenceNumber()
Gets the sequence number of this CSeqHeader. |
void |
setMethod(java.lang.String method)
Sets the method of CSeqHeader |
void |
setSequenceNumber(int sequenceNumber)
Sets the sequence number value of the CSeqHeader. |
Methods inherited from interface javax.sip.header.Header |
clone, equals, getName, toString |
Field Detail |
public static final java.lang.String NAME
Method Detail |
public void setMethod(java.lang.String method) throws java.text.ParseException
method
- - the method of the Request of this CSeqHeader
java.text.ParseException
- which signals that an error has been reached
unexpectedly while parsing the method value.public java.lang.String getMethod()
public void setSequenceNumber(int sequenceNumber) throws InvalidArgumentException
sequenceNumber
- - the new sequence number of this CSeqHeader
InvalidArgumentException
- if supplied value is less than zero.public int getSequenceNumber()
|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |