smsmediators
Class Sms

java.lang.Object
  extended byse.ericsson.eto.norarc.javaframe.Message
      extended bysmsmediators.Sms
All Implemented Interfaces:
java.lang.Cloneable

public class Sms
extends se.ericsson.eto.norarc.javaframe.Message

Description: Object representing a SMS message


Field Summary
 
Fields inherited from class se.ericsson.eto.norarc.javaframe.Message
nextMessage
 
Constructor Summary
Sms(java.lang.String message, java.lang.String to, java.lang.String from)
           
 
Method Summary
 java.lang.String getFrom()
           
 java.lang.String getMessage()
           
 java.lang.Object getParameter(java.lang.String key)
           
 no.uio.ifi.pats.client.sms.SmsMessage getSmsMessage()
          Method that is used in the SmsOutputMediator
 java.lang.String getTo()
           
 java.lang.String messageContent()
          Overriding messageContent() to describe the parameters of the message (for trace purposes).
 void setFrom(java.lang.String from)
           
 void setMessage(java.lang.String message)
           
 void setTo(java.lang.String to)
           
 
Methods inherited from class se.ericsson.eto.norarc.javaframe.Message
del, duplicate, messageName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sms

public Sms(java.lang.String message,
           java.lang.String to,
           java.lang.String from)
Parameters:
message - The content of the message
to - The receivers telephone number, 8 digits (without spaces and country code)
from - The senders telephone number, 4 or 8 digits (without spaces and country code)
Method Detail

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String message)

getTo

public java.lang.String getTo()

setTo

public void setTo(java.lang.String to)

getFrom

public java.lang.String getFrom()

setFrom

public void setFrom(java.lang.String from)

getParameter

public java.lang.Object getParameter(java.lang.String key)

messageContent

public java.lang.String messageContent()
Overriding messageContent() to describe the parameters of the message (for trace purposes).


getSmsMessage

public no.uio.ifi.pats.client.sms.SmsMessage getSmsMessage()
Method that is used in the SmsOutputMediator

Returns:
Returns the smsMessage that is sent to SmsServer.