FileDocCategorySizeDatePackage
NotifyRespInd.javaAPI DocAndroid 1.5 API3512Wed May 06 22:41:56 BST 2009com.google.android.mms.pdu

NotifyRespInd

public class NotifyRespInd extends GenericPdu
M-NofifyResp.ind PDU.

Fields Summary
Constructors Summary
public NotifyRespInd(int mmsVersion, byte[] transactionId, int status)
Constructor, used when composing a M-NotifyResp.ind pdu.

param
mmsVersion current version of mms
param
transactionId the transaction-id value
param
status the status value
throws
InvalidHeaderValueException if parameters are invalid. NullPointerException if transactionId is null. RuntimeException if an undeclared error occurs.

        super();
        setMessageType(PduHeaders.MESSAGE_TYPE_NOTIFYRESP_IND);
        setMmsVersion(mmsVersion);
        setTransactionId(transactionId);
        setStatus(status);
    
NotifyRespInd(PduHeaders headers)
Constructor with given headers.

param
headers Headers for this PDU.

        super(headers);
    
Methods Summary
public intgetReportAllowed()
Get X-Mms-Report-Allowed field value.

return
the X-Mms-Report-Allowed value

        return mPduHeaders.getOctet(PduHeaders.REPORT_ALLOWED);
    
public intgetStatus()
GetX-Mms-Status field value.

return
the X-Mms-Status value

        return mPduHeaders.getOctet(PduHeaders.STATUS);
    
public byte[]getTransactionId()
Get X-Mms-Transaction-Id field value.

return
the X-Mms-Report-Allowed value

        return mPduHeaders.getTextString(PduHeaders.TRANSACTION_ID);
    
public voidsetReportAllowed(int value)
Set X-Mms-Report-Allowed field value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid. RuntimeException if an undeclared error occurs.

        mPduHeaders.setOctet(value, PduHeaders.REPORT_ALLOWED);
    
public voidsetStatus(int value)
Set X-Mms-Status field value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid. RuntimeException if an undeclared error occurs.

        mPduHeaders.setOctet(value, PduHeaders.STATUS);
    
public voidsetTransactionId(byte[] value)
Set X-Mms-Transaction-Id field value.

param
value the value
throws
NullPointerException if the value is null. RuntimeException if an undeclared error occurs.

            mPduHeaders.setTextString(value, PduHeaders.TRANSACTION_ID);