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

SimpleAsyncTransaction

public final class SimpleAsyncTransaction extends AsyncTransaction
A default implementation of AsyncTransaction for some simple transactions. It might be convenient for a subclass to extend this class instead of AsyncTransaction so it doesn't have to override both onResponseError and onResponseOk but it could as well be missing either of them when doing so. Therefore we make this class final to prevent that from happening.

Fields Summary
Constructors Summary
public SimpleAsyncTransaction(ImpsTransactionManager manager, AsyncCompletion completion)

        super(manager, completion);
        if (completion == null) {
            // Since SimpleAsyncTransaction does nothing in onResponseOk
            // and onResponseError, we must have a completion object to
            // be able to notify someone.
            throw new NullPointerException();
        }
    
Methods Summary
public voidonResponseError(ImpsErrorInfo error)

        // do nothing
    
public voidonResponseOk(Primitive response)

        // do nothing