Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
RSeqHeader retval = new RSeqHeader();
if (seqNum != null) {
retval.seqNum =
new Integer(seqNum.intValue());
}
return retval;
|
public java.lang.String | encodeBody()Encodes into a canonical string.
if (seqNum == null)
return "0";
else
return seqNum.toString();
|
public int | getRSeqNum()Gets the sequence number header field.
return seqNum.intValue();
|
public java.lang.Object | getValue()Gets the sequence number header value.
return this.seqNum;
|
public void | setHeaderValue(java.lang.String value)Sets the header value field.
int val;
try {
val = Integer.parseInt(value);
setRSeqNum(val);
} catch (IllegalArgumentException iae) {
throw iae;
}
|
public void | setRSeqNum(int num)Sets the sequence number member.
if (num < 0)
throw new IllegalArgumentException("parameter is <0");
seqNum = new Integer(num);
headerValue = String.valueOf(num);
|