|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
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 String |
NAME
Name of the CSeqHeader |
Method Summary | |
String |
getMethod()
Gets the method of CSeqHeader |
int |
getSequenceNumber()
Gets the sequence number of this CSeqHeader. |
void |
setMethod(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 String NAME
Method Detail |
public void setMethod(String method) throws ParseException
method
- - the method of the Request of this CSeqHeader
ParseException
- which signals that an error has been reached
unexpectedly while parsing the method value.public 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()
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |