|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.Address
org.mobicents.protocols.smpp.ErrorAddress
public class ErrorAddress
An address that message submission was unsuccessfully submitted to. This class is used in the SubmitMultiResp packet type to return a list of SME addresses that message submission failed for along with an error code for each address indicating the reason for the failure.
| Constructor Summary | |
|---|---|
ErrorAddress()
Create a new ErrorAddress object. |
|
ErrorAddress(int ton,
int npi,
String addr)
Create a new ErrorAddress object. |
|
ErrorAddress(int ton,
int npi,
String addr,
long error)
Create a new ErrorAddress object. |
|
| Method Summary | |
|---|---|
long |
getError()
Get the error code associated with this ErrorAddress. |
int |
getLength()
Get the number of bytes this object would encode to. |
void |
readFrom(PacketDecoder decoder)
TODO: doc |
void |
setError(long error)
Set the error code associated with this ErrorAddress. |
String |
toString()
|
void |
writeTo(PacketEncoder encoder)
|
| Methods inherited from class org.mobicents.protocols.smpp.Address |
|---|
equals, getAddress, getNPI, getTON, hashCode, setAddress, setNPI, setTON |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorAddress()
public ErrorAddress(int ton,
int npi,
String addr)
ton - The Type Of Number.npi - The Numbering Plan Indicator.addr - The address.
public ErrorAddress(int ton,
int npi,
String addr,
long error)
ton - The Type Of Number.npi - The Numbering Plan Indicator.addr - The address.error - The error code indicating why message submission failed.| Method Detail |
|---|
public long getError()
public void setError(long error)
public int getLength()
Address
getLength in class Address
public void writeTo(PacketEncoder encoder)
throws IOException
writeTo in class AddressIOExceptionpublic void readFrom(PacketDecoder decoder)
Address
readFrom in class Addresspublic String toString()
toString in class Address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||