|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.sms.smpp.prot.Address ie.ncl.sms.smpp.Address
public class Address
This class is used to create a short messaging address. When a short message
is being send to short message entity (SME), such as a mobile station,
an address must
be specified.
The messaging address comprises of 3 parts; a Type of Number
(TON), a Number Plan Indicator (NPI) and a handset number
(the Mobile Station's Integrated Services Digital Network number - MSISDN).
It should be noted that the short
messaging address is not limited to a mobile station. The address can be
that of an extenal short message entity (ESME) such as a value added service
application (e.g. SMS to E-mail gateway).
Field Summary | |
---|---|
static short |
defaultNPI
Deprecated. see getDefaultTon, setDefaultTon |
static short |
defaultTON
Deprecated. see getDefaultTon, setDefaultTon |
Constructor Summary | |
---|---|
Address(int ton,
int npi,
java.lang.String msisdn)
|
|
Address(java.lang.String msisdn)
This constructor creates a short messaging address which comprises of the short message entity number (such as the telephone number of a handset), and a default TON and NPI. |
|
Address(java.lang.String number,
int ton,
int npi)
This constructor creates a short messaging address which comprises of a Type Of Number (TON), a Number Plan Indicator (NPI) and the short message entity's number (such as the telephone number of a handset). |
Method Summary | |
---|---|
boolean |
equals(Address a)
This method tests equality of the short messaging address with another one. |
static int |
getDefaultNpi()
Alias for getDefaultNPI. |
static int |
getDefaultNPI()
Get the default NPI. |
static int |
getDefaultTon()
Alias for getDefaultTON. |
static int |
getDefaultTON()
Get the default Number Plan Indicator. |
java.lang.String |
getMSISDN()
This method returns the MSISDN number field of the short messaging address. |
int |
getNPI()
This method returns the Number Plan Indicator field of the short messaging address. |
java.lang.String |
getNumber()
Alias for getMSISDN |
int |
getTON()
This method returns the Type of Number field of the short messaging address. |
static void |
setDefaultNpi(int npi)
Alias for setDefaultNPI. |
static void |
setDefaultNPI(int npi)
Set the default NPI. |
static void |
setDefaultTon(int ton)
Alias for setDefaultTON. |
static void |
setDefaultTON(int ton)
Set the default Type of Number. |
java.lang.String |
toString()
|
Methods inherited from class ie.ncl.sms.smpp.prot.Address |
---|
getMsisdn, setMsisdn, setNPI, setTON |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static short defaultTON
Constants.GSM_TON_NATIONAL
public static short defaultNPI
Constants.GSM_NPI_E164
Constructor Detail |
---|
public Address(java.lang.String number, int ton, int npi)
number
- The number of the short messaging entityton
- The Type of Numbernpi
- The Number Plan IndicatorConstants.GSM_TON_UNKNOWN
,
Constants.GSM_TON_INTERNATIONAL
,
Constants.GSM_TON_NATIONAL
,
Constants.GSM_TON_NETWORK
,
Constants.GSM_TON_SUBSCRIBER
,
Constants.GSM_TON_ALPHANUMERIC
,
Constants.GSM_TON_ABBREVIATED
,
Constants.GSM_TON_RESERVED_EXTN
,
Constants.GSM_NPI_UNKNOWN
,
Constants.GSM_NPI_E164
,
Constants.GSM_NPI_ISDN
,
Constants.GSM_NPI_X121
,
Constants.GSM_NPI_TELEX
,
Constants.GSM_NPI_NATIONAL
,
Constants.GSM_NPI_PRIVATE
,
Constants.GSM_NPI_ERMES
,
Constants.GSM_NPI_RESERVED_EXTN
public Address(int ton, int npi, java.lang.String msisdn)
public Address(java.lang.String msisdn)
msisdn
- SMS entity numberdefaultTON
,
defaultNPI
Method Detail |
---|
public static int getDefaultTON()
public static int getDefaultTon()
public static void setDefaultTON(int ton)
public static void setDefaultTon(int ton)
public static int getDefaultNPI()
public static int getDefaultNpi()
public static void setDefaultNPI(int npi)
public static void setDefaultNpi(int npi)
public java.lang.String toString()
toString
in class java.lang.Object
public int getTON()
getTON
in class ie.ncl.sms.smpp.prot.Address
Constants
public int getNPI()
getNPI
in class ie.ncl.sms.smpp.prot.Address
Constants
public java.lang.String getMSISDN()
public java.lang.String getNumber()
public boolean equals(Address a)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |