edu.columbia.coms6901.pingtel.pingim
Class SUBSCRIBEMessage

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

public class SUBSCRIBEMessage
extends SIPMessage

Handles outgoing SUBSCRIBE Messages. Generates content of message.

Version:
1.0
Author:
Micah Sherr

Field Summary
private  int iExpires
          length of the subscription, in seconds
private  com.pingtel.xpressa.sys.XpressaSettings settings
          Set of settings for this phone
 
Fields inherited from class edu.columbia.coms6901.pingtel.pingim.SIPMessage
bValidity, randomNumberGenerator, response, sipRequest
 
Constructor Summary
SUBSCRIBEMessage(java.lang.String sForeignSipAddress)
          Creates a new instance of SUBSCRIBEMessage
SUBSCRIBEMessage(java.lang.String sForeignSipAddress, int iExpires)
          Creates a new instance of SUBSCRIBEMessage
 
Method Summary
private  boolean setHeaders(java.lang.String sForeignSipAddress)
          Sets appropriate headers for SIP SUBSCRIBE 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

settings

private com.pingtel.xpressa.sys.XpressaSettings settings
Set of settings for this phone

iExpires

private int iExpires
length of the subscription, in seconds
Constructor Detail

SUBSCRIBEMessage

public SUBSCRIBEMessage(java.lang.String sForeignSipAddress)
Creates a new instance of SUBSCRIBEMessage
Parameters:
sForeignSipAddress - SIP address of receipient of SUBSCRIBE

SUBSCRIBEMessage

public SUBSCRIBEMessage(java.lang.String sForeignSipAddress,
                        int iExpires)
Creates a new instance of SUBSCRIBEMessage
Parameters:
sForeignSipAddress - SIP address of receipient of SUBSCRIBE
iExpires - Expiration time of message
Method Detail

setHeaders

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