java.lang.Object | ||
↳ | com.android.mms.transaction.Observable | |
↳ | com.android.mms.transaction.Transaction |
Known Direct Subclasses |
Transaction is an abstract class for notification transaction, send transaction and other transactions described in MMS spec. It provides the interfaces of them and some common methods for them.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | NOTIFICATION_TRANSACTION | Identifies push requests. | |||||||||
int | READREC_TRANSACTION | Identifies send read report requests. | |||||||||
int | RETRIEVE_TRANSACTION | Identifies deferred retrieve requests. | |||||||||
int | SEND_TRANSACTION | Identifies send multimedia message requests. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mContext | |||||||||||
mId | |||||||||||
mTransactionSettings | |||||||||||
mTransactionState |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the service-id of this transaction which was assigned by the framework.
| |||||||||||
Returns the transaction state of this transaction.
| |||||||||||
Get the type of the transaction.
| |||||||||||
Used to determine whether a transaction is equivalent to this instance.
| |||||||||||
Look up a host name and return the result as an int.
| |||||||||||
An instance of Transaction encapsulates the actions required
during a MMS Client transaction.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A common method to retrieve a PDU from MMSC.
| |||||||||||
A common method to send a PDU to MMSC.
| |||||||||||
A common method to send a PDU to MMSC.
| |||||||||||
A common method to send a PDU to MMSC.
| |||||||||||
A common method to send a PDU to MMSC.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.android.mms.transaction.Observable
| |||||||||||
From class
java.lang.Object
|
Identifies push requests.
Identifies send read report requests.
Identifies deferred retrieve requests.
Identifies send multimedia message requests.
Get the service-id of this transaction which was assigned by the framework.
Returns the transaction state of this transaction.
Get the type of the transaction.
Used to determine whether a transaction is equivalent to this instance.
transaction | the transaction which is compared to this instance. |
---|
Look up a host name and return the result as an int. Works if the argument is an IP address in dot notation. Obviously, this can only be used for IPv4 addresses.
hostname | the name of the host (or the IP address) |
---|
int
in network byte order
An instance of Transaction encapsulates the actions required during a MMS Client transaction.
A common method to retrieve a PDU from MMSC.
url | The URL of the message which we are going to retrieve. |
---|
IOException | if any error occurred on network interface or an HTTP error code(>=400) returned from the server. |
---|
A common method to send a PDU to MMSC.
pdu | A byte array which contains the data of the PDU. |
---|
IOException | if any error occurred on network interface or an HTTP error code(>=400) returned from the server. |
---|
A common method to send a PDU to MMSC.
token | The token to identify the sending progress. |
---|---|
pdu | A byte array which contains the data of the PDU. |
IOException | if any error occurred on network interface or an HTTP error code(>=400) returned from the server. |
---|
A common method to send a PDU to MMSC.
pdu | A byte array which contains the data of the PDU. |
---|---|
mmscUrl | Url of the recipient MMSC. |
IOException | if any error occurred on network interface or an HTTP error code(>=400) returned from the server. |
---|
A common method to send a PDU to MMSC.
token | The token to identify the sending progress. |
---|---|
pdu | A byte array which contains the data of the PDU. |
mmscUrl | Url of the recipient MMSC. |
IOException | if any error occurred on network interface or an HTTP error code(>=400) returned from the server. |
---|