public class

TransactionBundle

extends Object
java.lang.Object
   ↳ com.android.mms.transaction.TransactionBundle

Class Overview

A wrapper around the Bundle instances used to start the TransactionService. It provides high-level APIs to set the information required for the latter to instantiate transactions.

Summary

Constants
String TRANSACTION_TYPE Key for the transaction-type.
String URI Key of the URI.
Public Constructors
TransactionBundle(int transactionType, String uri)
Constructor of a bundle used for TransactionBundle instances of type TYPE_RETRIEVE_TRANSACTION, TYPE_SEND_TRANSACTION, and TYPE_READREC_TRANSACTION.
TransactionBundle(Bundle bundle)
Constructor of a transaction bundle used for incoming bundle instances.
Public Methods
Bundle getBundle()
String getMmscUrl()
String getProxyAddress()
int getProxyPort()
byte[] getPushData()
int getTransactionType()
String getUri()
void setConnectionSettings(TransactionSettings settings)
void setConnectionSettings(String mmscUrl, String proxyAddress, int proxyPort)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String TRANSACTION_TYPE

Key for the transaction-type. Allowed values for this key are: TYPE_PUSH_TRANSACTION, TYPE_RETRIEVE_TRANSACTION, TYPE_SEND_TRANSACTION, and TYPE_READREC_TRANSACTION.

Constant Value: "type"

public static final String URI

Key of the URI. Indicates the URL of the M-Retrieve.conf in TYPE_RETRIEVE_TRANSACTION, or the Uri of the M-Send.req/M-Read-Rec.ind in TYPE_SEND_TRANSACTION and TYPE_READREC_TRANSACTION, respectively.

Constant Value: "uri"

Public Constructors

public TransactionBundle (int transactionType, String uri)

Constructor of a bundle used for TransactionBundle instances of type TYPE_RETRIEVE_TRANSACTION, TYPE_SEND_TRANSACTION, and TYPE_READREC_TRANSACTION.

Parameters
uri The relevant URI for this transaction. Indicates the URL of the M-Retrieve.conf in TYPE_RETRIEVE_TRANSACTION, or the Uri of the M-Send.req/M-Read-Rec.ind in TYPE_SEND_TRANSACTION and TYPE_READREC_TRANSACTION, respectively.

public TransactionBundle (Bundle bundle)

Constructor of a transaction bundle used for incoming bundle instances.

Parameters
bundle The incoming bundle

Public Methods

public Bundle getBundle ()

public String getMmscUrl ()

public String getProxyAddress ()

public int getProxyPort ()

public byte[] getPushData ()

public int getTransactionType ()

public String getUri ()

public void setConnectionSettings (TransactionSettings settings)

public void setConnectionSettings (String mmscUrl, String proxyAddress, int proxyPort)