|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.GeneralHeader
|
+--jain.protocol.ip.sip.header.TimestampHeader
This class represents the Timestamp general-header. The TimestampHeader describes when the client sent the RequestMessage to the server. The value of the timestamp is of significance only to the client and it may use any timescale. The server must echo the exact same value and may, if it has accurate information about this, add a floating point number indicating the number of seconds that have elapsed since it has received the RequestMessage. The TimestampHeader is used by the client to compute the round-trip time to the server so that it can adjust the timeout value for retransmissions.
| Field Summary | |
static java.lang.String |
token
Token of TimestampHeader |
| Fields inherited from class jain.protocol.ip.sip.header.Header |
ENTITY_HEADER,
GENERAL_HEADER,
REQUEST_HEADER,
RESPONSE_HEADER |
| Constructor Summary | |
TimestampHeader(float timestamp)
Creates a TimestampHeader based on given timestamp |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of TimestampHeader |
boolean |
equals(TimestampHeader timestampHeader)
Indicates whether some other TimestampHeader is "equal to" this one |
float |
getDelay()
Gets delay of TimestampHeader |
float |
getTimestamp()
Gets timestamp of TimestampHeader |
java.lang.String |
getValue()
Gets value of TimestampHeader |
boolean |
hasDelay()
Returns boolean value indicating if TimestampHeader has delay |
void |
removeDelay()
Removes delay from TimestampHeader |
void |
setDelay(float delay)
Sets delay of TimestampHeader |
void |
setTimestamp(float timestamp)
Sets timestamp of TimestampHeader |
| Methods inherited from class jain.protocol.ip.sip.header.Header |
equals,
getHeaderType,
getToken,
setValue,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String token
| Constructor Detail |
public TimestampHeader(float timestamp)
throws java.lang.IllegalArgumentException
timestamp - ntimestamp| Method Detail |
public float getTimestamp()
public float getDelay()
throws ParameterNotSetException
public void setTimestamp(float timestamp)
throws java.lang.IllegalArgumentException
timestamp - timestamp
public void setDelay(float delay)
throws java.lang.IllegalArgumentException
delay - delaypublic boolean hasDelay()
public void removeDelay()
public java.lang.String getValue()
public java.lang.Object clone()
public boolean equals(TimestampHeader timestampHeader)
timestampHeader - the TimestampHeader with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems