Interface RSeqHeader

  • All Superinterfaces:
    Cloneable, Header, RSeqHeader, Serializable

    public interface RSeqHeader
    extends RSeqHeader
    Extension to the RSeqHeader interface.

    Provides access to the sequence number of this RSeqHeader as a long.

    This extension interface is necessary because JAIN SIP 1.2 changed CSeqHeader to use long, but neglected to update RSeq and RAck headers.

    Since:
    OCSIP RA Type 2.2
    • Method Detail

      • getSeq

        long getSeq()
        Gets the sequence number of this RSeqHeader as a long.
        Returns:
        the long value of the Sequence number of the RSeqHeader.
      • setSeq

        void setSeq​(long rseq)
             throws InvalidArgumentException
        Sets the sequence number value of the RSeqHeader of the provisional response. The sequence number MUST be expressible as a 32-bit unsigned integer and MUST be less than 2**32.
        Parameters:
        rseq - the new Sequence number of this RSeqHeader.
        Throws:
        InvalidArgumentException - if supplied value is less than ONE or greater than 2**32-1.