FileDocCategorySizeDatePackage
ImpsTransaction.javaAPI DocAndroid 1.5 API1763Wed May 06 22:42:46 BST 2009com.android.im.imps

ImpsTransaction

public class ImpsTransaction extends Object
Represents an IMPS transaction which is a basic communication mechanism between an IMPS client and an IMPS SAP. A transaction usually consists of a request and a response primitive. The transactions MAY originate from either IMPS client or IMPS SAP.

Fields Summary
private String
mId
private ImpsConnection
mConnection
Constructors Summary
protected ImpsTransaction()
Creates a new transaction.

param
id the id of the transaction.

    
Methods Summary
public java.lang.StringgetId()
Gets the id of this transaction.

return
the id of this transaction.

        return mId;
    
protected voidsendPrimitive(Primitive primitive)

        ImpsSession session = mConnection.getSession();
        if (session != null) {
            primitive.setSession(session.getID());
        }
        primitive.setTransaction(this);

        mConnection.sendPrimitive(primitive);
    
voidsetTransactionInfo(java.lang.String id, ImpsConnection conn)

        mId = id;
        mConnection = conn;