| |
|
| java.lang.Object gov.nist.core.GenericObject gov.nist.siplite.header.Header gov.nist.siplite.header.ParameterLessHeader gov.nist.siplite.header.RAckHeader
RAckHeader | public class RAckHeader extends ParameterLessHeader (Code) | | RAck Header.
The RAck header is sent in a PRACK request to support reliability of
provisional responses. For details please see RFC 3262, section 7.2
|
Constructor Summary | |
public | RAckHeader() Constructor. | public | RAckHeader(int responseNumber, int cseqNumber, String method) Constructor given the sequence number and method. |
cseqNum | protected Integer cseqNum(Code) | | CSeq number : value of CSeq header field
|
responseNum | protected Integer responseNum(Code) | | response number - it is actually a value of RSeq header in the reliable
provisional response
|
RAckHeader | public RAckHeader()(Code) | | Constructor.
|
RAckHeader | public RAckHeader(int responseNumber, int cseqNumber, String method)(Code) | | Constructor given the sequence number and method.
Parameters: responseNumber - is the response number to assign. Parameters: cseqNumber - is the CSeq number to assign. Parameters: method - is the method string. |
clone | public Object clone()(Code) | | Copies the current instance.
copy of current object |
encodeBody | public String encodeBody()(Code) | | Return canonical header content. (encoded header except headerName:)
encoded string. |
equals | public boolean equals(Object other)(Code) | | Compare two RAck headers for equality. Equality of RAck headers means
that the class, method, response number and cseq number are same for
both the headers
Parameters: other - Object to compare against. true if the two RAck headers are equals, falseotherwise. |
getMethod | public String getMethod()(Code) | | Get the method.
String the method. |
getResponseNumber | public int getResponseNumber()(Code) | | Gets the response number of this RAckHeaderHeader.
response number of the RAckHeaderHeader |
getSequenceNumber | public int getSequenceNumber()(Code) | | Gets the sequence number of this RAckHeaderHeader.
sequence number of the RAckHeaderHeader |
getValue | public Object getValue()(Code) | | Gets the header value.
the header value |
setMethod | public void setMethod(String newMethod)(Code) | | Set the method member
Parameters: newMethod - Method to be set |
setResponseNumber | public void setResponseNumber(int responseNumber)(Code) | | Sets the response number of this RAckHeaderHeader.
Parameters: responseNumber - is the response number to be set |
setSequenceNumber | public void setSequenceNumber(int sequenceNumber)(Code) | | Sets the sequence number of this RAckHeaderHeader. The sequence number
MUST be expressible as a 32-bit unsigned integer and MUST be less than
2**31.
Parameters: sequenceNumber - - the sequence number to set. throws: InvalidArgumentException - -- if the seq number is <= 0 |
Fields inherited from gov.nist.siplite.header.ParameterLessHeader | public static Class clazz(Code)(Java Doc)
|
|
|
|