ORG.oclc.sip
Class SipSequence
java.lang.Object
|
+--ORG.oclc.sip.SipSequence
- public class SipSequence
- extends Object
The SipSequence class creates and increments a sequence number
according to the algorithm specified in the Error Handling section
of the 3M Standard Interchange Protocol (Document Revision 2.0,
Updated Nov. 11, 1997)
The String to insert into the SIP message is
retrieved using the toHexString() method.
Field Summary |
protected short |
value
|
Constructor Summary |
SipSequence()
Constructs an SipSequence object |
Method Summary |
String |
getSequence()
Returns the hex string representation of the sequence value |
static void |
main(String[] args)
Tests the SipSequence class |
void |
reset()
Resets the sequence to its initial value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
value
protected short value
SipSequence
public SipSequence()
- Constructs an SipSequence object
reset
public void reset()
- Resets the sequence to its initial value.
getSequence
public String getSequence()
- Returns the hex string representation of the sequence value
- Returns:
- a 1-character ascii string of the value of the checksum
(in upper case) and increments the value.
main
public static void main(String[] args)
- Tests the SipSequence class