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

GenericPdu

public class GenericPdu extends Object

Fields Summary
PduHeaders
mPduHeaders
The headers of pdu.
Constructors Summary
public GenericPdu()
Constructor.


          
      
        mPduHeaders = new PduHeaders();
    
GenericPdu(PduHeaders headers)
Constructor.

param
headers Headers for this PDU.

        mPduHeaders = headers;
    
Methods Summary
public intgetMessageType()
Get X-Mms-Message-Type field value.

return
the X-Mms-Report-Allowed value

        return mPduHeaders.getOctet(PduHeaders.MESSAGE_TYPE);
    
public intgetMmsVersion()
Get X-Mms-MMS-Version field value.

return
the X-Mms-MMS-Version value

        return mPduHeaders.getOctet(PduHeaders.MMS_VERSION);
    
PduHeadersgetPduHeaders()
Get the headers of this PDU.

return
A PduHeaders of this PDU.

        return mPduHeaders;
    
public voidsetMessageType(int value)
Set X-Mms-Message-Type field value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid. RuntimeException if field's value is not Octet.

        mPduHeaders.setOctet(value, PduHeaders.MESSAGE_TYPE);
    
public voidsetMmsVersion(int value)
Set X-Mms-MMS-Version field value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid. RuntimeException if field's value is not Octet.

        mPduHeaders.setOctet(value, PduHeaders.MMS_VERSION);