edu.columbia.coms6901.pingtel.pingim
Class MESSAGEMessage

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

public class MESSAGEMessage
extends SIPMessage

Implementation of a SIP MESSAGE message. Used for sending IM messages to other PingIM clients

Version:
1.0
Author:
Micah Sherr

Field Summary
private  com.pingtel.xpressa.sys.XpressaSettings settings
          the current set of settings for the PingTel phone
private  java.lang.String sMessage
          the outgoing message
 
Fields inherited from class edu.columbia.coms6901.pingtel.pingim.SIPMessage
bValidity, randomNumberGenerator, response, sipRequest
 
Constructor Summary
MESSAGEMessage(java.lang.String sForeignSipAddress, java.lang.String sMsg)
          Creates a new instance of a SIP MESSAGE message.
 
Method Summary
private  boolean setHeaders(java.lang.String sForeignSipAddress)
          Sets appropriate headers for SIP MESSAGE 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
the current set of settings for the PingTel phone

sMessage

private java.lang.String sMessage
the outgoing message
Constructor Detail

MESSAGEMessage

public MESSAGEMessage(java.lang.String sForeignSipAddress,
                      java.lang.String sMsg)
Creates a new instance of a SIP MESSAGE message.
Parameters:
sForeignSipAddress - SIP address of receipient
sDeviceName - Name of device (e.g., "lamp")
iAction - Either ON or OFF
Method Detail

setHeaders

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