|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
gov.nist.javax.sip.header.SIPHeader
gov.nist.javax.sip.header.CSeq
CSeq SIP Header.
| Field Summary |
| Fields inherited from interface javax.sip.header.CSeqHeader |
NAME |
| Fields inherited from interface gov.nist.javax.sip.header.SIPHeaderNames |
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE |
| Constructor Summary | |
CSeq()
Constructor. |
|
CSeq(int seqno,
String method)
Constructor given the sequence number and method. |
|
| Method Summary | |
String |
encode()
Return canonical encoded header. |
String |
encodeBody()
Return canonical header content. |
boolean |
equals(Object other)
Compare two cseq headers for equality. |
String |
getMethod()
Get the method. |
int |
getSequenceNumber()
Gets the sequence number of this CSeqHeader. |
void |
setMethod(String meth)
Set the method member |
void |
setSequenceNumber(int sequenceNumber)
Sets the sequence number of this CSeqHeader. |
| Methods inherited from class gov.nist.javax.sip.header.SIPHeader |
getHeaderName, getHeaderValue, getName, getValue, isHeaderList, setHeaderName |
| Methods inherited from class gov.nist.javax.sip.header.SIPObject |
clone, dbgPrint, debugDump, debugDump, match, merge, replace, replace, replace, replace, toString |
| Methods inherited from class gov.nist.core.GenericObject |
getClassFromName, getMatcher, isMySubclass, match, setMatcher |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.sip.header.Header |
clone, getName, toString |
| Constructor Detail |
public CSeq()
public CSeq(int seqno,
String method)
seqno - is the sequence number to assign.method - is the method string.| Method Detail |
public boolean equals(Object other)
equals in interface Headerequals in class SIPObjectother - Object to compare against.
public String encode()
encode in class SIPHeaderpublic String encodeBody()
public String getMethod()
getMethod in interface CSeqHeader
public void setSequenceNumber(int sequenceNumber)
throws InvalidArgumentException
setSequenceNumber in interface CSeqHeadersequenceNumber - - the sequence number to set.
InvalidArgumentException - -- if the seq number is <= 0
public void setMethod(String meth)
throws ParseException
setMethod in interface CSeqHeadermeth - -- String to set
ParseException - which signals that an error has been reached
unexpectedly while parsing the method value.public int getSequenceNumber()
getSequenceNumber in interface CSeqHeader
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||