org.marre.sms
Class SmsPortAddressedMessage

java.lang.Object
  extended byorg.marre.sms.SmsConcatMessage
      extended byorg.marre.sms.SmsPortAddressedMessage
All Implemented Interfaces:
SmsMessage
Direct Known Subclasses:
NokiaGroupGraphic, org.marre.sms.nokia.NokiaMultipartMessage, NokiaOperatorLogo, NokiaRingTone, SmsPortAddressedTextMessage, SmsWapPushMessage

public abstract class SmsPortAddressedMessage
extends SmsConcatMessage

Base class for all port adressed messages. It is using a 16 bit port address.

Version:
$Id: SmsPortAddressedMessage.java,v 1.2 2005/11/26 14:49:49 c95men Exp $
Author:
Markus

Field Summary
protected  int myDestPort
           
protected  int myOrigPort
           
 
Constructor Summary
protected SmsPortAddressedMessage(int destPort, int origPort)
          Creates a new SmsPortAddressedMessage with the given dest and orig port.
 
Method Summary
 SmsUdhElement[] getUdhElements()
          Returns the udh elements The returned UDH is the same as specified when the message was created.
 void setPorts(int destPort, int origPort)
          Sets the dest and orig ports.
 
Methods inherited from class org.marre.sms.SmsConcatMessage
getPdus, getUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myDestPort

protected int myDestPort

myOrigPort

protected int myOrigPort
Constructor Detail

SmsPortAddressedMessage

protected SmsPortAddressedMessage(int destPort,
                                  int origPort)
Creates a new SmsPortAddressedMessage with the given dest and orig port.

Parameters:
destPort -
origPort -
Method Detail

setPorts

public void setPorts(int destPort,
                     int origPort)
Sets the dest and orig ports.

Parameters:
destPort -
origPort -

getUdhElements

public SmsUdhElement[] getUdhElements()
Description copied from class: SmsConcatMessage
Returns the udh elements

The returned UDH is the same as specified when the message was created. No concat headers are added.

Specified by:
getUdhElements in class SmsConcatMessage
Returns:
the UDH as SmsUdhElements


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.