Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.sms.gsm
Class GsmAddress

java.lang.Object
  extended by ie.ncl.msg.Address
      extended by ie.ncl.sms.gsm.GsmAddress
All Implemented Interfaces:
AttributeNames, AddressAttributeNames, java.io.Serializable, java.lang.Cloneable

public class GsmAddress
extends Address
implements AddressAttributeNames

A GSM Addess object. If the number begins with '+' it will be replaced by '00' and assume a international TypeOfAddress. Otherwise it is considered national.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ie.ncl.sms.AddressAttributeNames
TOA
 
Constructor Summary
GsmAddress(java.lang.String msisdn)
          Set the address telephone number.
GsmAddress(java.lang.String msisdn, TypeOfAddress typeOfAddress)
          Set the address telephone number and type of address.
 
Method Summary
 java.lang.String getMsisdn()
          Return the MSISDN number.
 TypeOfAddress getTypeOfAddress()
          Get the address type.
 java.lang.String toString()
          Return printable telephone number, including a '+' if the number is an international one.
 
Methods inherited from class ie.ncl.msg.Address
clone, copy, equals, equals, getAddress, getAttribute, getAttributes, putAttribute, removeAttribute, setAddress
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GsmAddress

public GsmAddress(java.lang.String msisdn,
                  TypeOfAddress typeOfAddress)
Set the address telephone number and type of address.


GsmAddress

public GsmAddress(java.lang.String msisdn)
Set the address telephone number.

Method Detail

getTypeOfAddress

public TypeOfAddress getTypeOfAddress()
Get the address type.

See Also:
TypeOfAddress

getMsisdn

public java.lang.String getMsisdn()
Return the MSISDN number.


toString

public java.lang.String toString()
Return printable telephone number, including a '+' if the number is an international one.

Overrides:
toString in class Address
Returns:
the string value that was used in its construction.

Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit