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

RetrieveConf

public class RetrieveConf extends MultimediaMessagePdu
M-Retrive.conf Pdu.

Fields Summary
Constructors Summary
public RetrieveConf()
Empty constructor. Since the Pdu corresponding to this class is constructed by the Proxy-Relay server, this class is only instantiated by the Pdu Parser.

throws
InvalidHeaderValueException if error occurs.

        super();
        setMessageType(PduHeaders.MESSAGE_TYPE_RETRIEVE_CONF);
    
RetrieveConf(PduHeaders headers)
Constructor with given headers.

param
headers Headers for this PDU.

        super(headers);
    
RetrieveConf(PduHeaders headers, PduBody body)
Constructor with given headers and body

param
headers Headers for this PDU.
param
body Body of this PDu.

        super(headers, body);
    
Methods Summary
public voidaddCc(EncodedStringValue value)
Add a "CC" value.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC);
    
public EncodedStringValue[]getCc()
Get CC value.

return
the value

        return mPduHeaders.getEncodedStringValues(PduHeaders.CC);
    
public byte[]getContentType()
Get Content-type value.

return
the value

        return mPduHeaders.getTextString(PduHeaders.CONTENT_TYPE);
    
public intgetDeliveryReport()
Get X-Mms-Delivery-Report value.

return
the value

        return mPduHeaders.getOctet(PduHeaders.DELIVERY_REPORT);
    
public EncodedStringValuegetFrom()
Get From value. From-value = Value-length (Address-present-token Encoded-string-value | Insert-address-token)

return
the value

       return mPduHeaders.getEncodedStringValue(PduHeaders.FROM);
    
public byte[]getMessageClass()
Get X-Mms-Message-Class value. Message-class-value = Class-identifier | Token-text Class-identifier = Personal | Advertisement | Informational | Auto

return
the value

        return mPduHeaders.getTextString(PduHeaders.MESSAGE_CLASS);
    
public byte[]getMessageId()
Get Message-ID value.

return
the value

        return mPduHeaders.getTextString(PduHeaders.MESSAGE_ID);
    
public intgetReadReport()
Get X-Mms-Read-Report value.

return
the value

        return mPduHeaders.getOctet(PduHeaders.READ_REPORT);
    
public intgetRetrieveStatus()
Get X-Mms-Retrieve-Status value.

return
the value

        return mPduHeaders.getOctet(PduHeaders.RETRIEVE_STATUS);
    
public EncodedStringValuegetRetrieveText()
Get X-Mms-Retrieve-Text value.

return
the value

        return mPduHeaders.getEncodedStringValue(PduHeaders.RETRIEVE_TEXT);
    
public byte[]getTransactionId()
Get X-Mms-Transaction-Id.

return
the value

        return mPduHeaders.getTextString(PduHeaders.TRANSACTION_ID);
    
public voidsetContentType(byte[] value)
Set Content-type value.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE);
    
public voidsetDeliveryReport(int value)
Set X-Mms-Delivery-Report value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid.

        mPduHeaders.setOctet(value, PduHeaders.DELIVERY_REPORT);
    
public voidsetFrom(EncodedStringValue value)
Set From value.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM);
    
public voidsetMessageClass(byte[] value)
Set X-Mms-Message-Class value.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS);
    
public voidsetMessageId(byte[] value)
Set Message-ID value.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID);
    
public voidsetReadReport(int value)
Set X-Mms-Read-Report value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid.

        mPduHeaders.setOctet(value, PduHeaders.READ_REPORT);
    
public voidsetRetrieveStatus(int value)
Set X-Mms-Retrieve-Status value.

param
value the value
throws
InvalidHeaderValueException if the value is invalid.

        mPduHeaders.setOctet(value, PduHeaders.RETRIEVE_STATUS);
    
public voidsetRetrieveText(EncodedStringValue value)
Set X-Mms-Retrieve-Text value.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.setEncodedStringValue(value, PduHeaders.RETRIEVE_TEXT);
    
public voidsetTransactionId(byte[] value)
Set X-Mms-Transaction-Id.

param
value the value
throws
NullPointerException if the value is null.

        mPduHeaders.setTextString(value, PduHeaders.TRANSACTION_ID);