edu.columbia.coms6901.pingtel.pingim
Class NOTIFYMessage

java.lang.Object
  |
  +--edu.columbia.coms6901.pingtel.pingim.SIPMessage
        |
        +--edu.columbia.coms6901.pingtel.pingim.NOTIFYMessage

public class NOTIFYMessage
extends SIPMessage

Implementation of a SIP NOTIFY message. Used to notify other PingIM clients of the current state of this PingIM

Version:
1.0
Author:
Micah Sherr

Field Summary
private static int iSequenceNo
          current sequence number of this NOTIFY message
private  com.pingtel.xpressa.sys.XpressaSettings settings
          current set of settings for this phone
 
Fields inherited from class edu.columbia.coms6901.pingtel.pingim.SIPMessage
bValidity, randomNumberGenerator, response, sipRequest
 
Constructor Summary
NOTIFYMessage(java.lang.String sForeignSipAddress)
          Creates a new instance of NOTIFYMessage, i.e., a new NOTIFY message
 
Method Summary
private  java.lang.String generateContent()
          Generates content of NOTIFY message in XML format
private  boolean setHeaders(java.lang.String sForeignSipAddress)
          Sets appropriate headers for SIP NOTIFY message
 
Methods inherited from class edu.columbia.coms6901.pingtel.pingim.SIPMessage
getResponse, send, sendAndWait
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iSequenceNo

private static int iSequenceNo
current sequence number of this NOTIFY message

settings

private com.pingtel.xpressa.sys.XpressaSettings settings
current set of settings for this phone
Constructor Detail

NOTIFYMessage

public NOTIFYMessage(java.lang.String sForeignSipAddress)
Creates a new instance of NOTIFYMessage, i.e., a new NOTIFY message
Parameters:
sForeignSipAddress - SIP address of receiver of NOTIFY message
Method Detail

setHeaders

private boolean setHeaders(java.lang.String sForeignSipAddress)
Sets appropriate headers for SIP NOTIFY message
Parameters:
sForeignSipAddress - SIP address of receiver of NOTIFY message
Returns:
true on success, false on error

generateContent

private java.lang.String generateContent()
Generates content of NOTIFY message in XML format
Returns:
content of SIP NOTIFY message