|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.marre.sms.SmsAddress
Represents an phonenumber in SMSj.
The address can be a phonenumber (+463482422) or alphanumeric ('SmsService'). Not all networks and transports supports alphanumeric sending id.
Max address length is
- 20 digits (excluding any initial '+') or
- 11 alphanumeric chars (if TON == TON_ALPHANUMERIC).
Look in SmsConstants for definitions of TON and NPI.
| Constructor Summary | |
SmsAddress(java.lang.String theAddress)
Creates an SmsAddress object. |
|
SmsAddress(java.lang.String theAddress,
int theTon,
int theNpi)
Creates an SmsAddress object. |
|
| Method Summary | |
java.lang.String |
getAddress()
Returns the address |
int |
getNumberingPlanIdentification()
Returns the NPI field See SmsConstants for definitions of different TON:s |
int |
getTypeOfNumber()
Returns the TON field See SmsConstants for definitions of different TON:s |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SmsAddress(java.lang.String theAddress)
throws SmsException
This constructor tries to be intelligent by choosing the correct NPI and TON from the given address.
theAddress - The address
SmsException - Thrown if the address is invalid
public SmsAddress(java.lang.String theAddress,
int theTon,
int theNpi)
throws SmsException
If you choose TON_ALPHANUMERIC then the NPI will be set to NPI_UNKNOWN.
theAddress - The addresstheTon - The type of numbertheNpi - The number plan indication
SmsException - Thrown if the address is invalid| Method Detail |
public java.lang.String getAddress()
public int getTypeOfNumber()
See SmsConstants for definitions of different TON:s
public int getNumberingPlanIdentification()
See SmsConstants for definitions of different TON:s
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||