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

NotificationInd

public class NotificationInd extends GenericPdu
M-Notification.ind PDU.

Fields Summary
Constructors Summary
public NotificationInd()
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. RuntimeException if an undeclared error occurs.

        super();
        setMessageType(PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND);
    
NotificationInd(PduHeaders headers)
Constructor with given headers.

param
headers Headers for this PDU.

        super(headers);
    
Methods Summary
public intgetContentClass()
Get X-Mms-Content-Class Value.

return
the value

        return mPduHeaders.getOctet(PduHeaders.CONTENT_CLASS);
    
public byte[]getContentLocation()
Get X-Mms-Content-Location value. When used in a PDU other than M-Mbox-Delete.conf and M-Delete.conf: Content-location-value = Uri-value

return
the value

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

return
the value

        return mPduHeaders.getOctet(PduHeaders.DELIVERY_REPORT);
    
public longgetExpiry()
Get X-Mms-Expiry value. Expiry-value = Value-length (Absolute-token Date-value | Relative-token Delta-seconds-value)

return
the value

        return mPduHeaders.getLongInteger(PduHeaders.EXPIRY);
    
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 longgetMessageSize()
Get X-Mms-Message-Size value. Message-size-value = Long-integer

return
the value

        return mPduHeaders.getLongInteger(PduHeaders.MESSAGE_SIZE);
    
public EncodedStringValuegetSubject()
Get subject.

return
the value

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

return
the value

        return mPduHeaders.getTextString(PduHeaders.TRANSACTION_ID);
    
public voidsetContentClass(int value)
Set X-Mms-Content-Class Value.

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

        mPduHeaders.setOctet(value, PduHeaders.CONTENT_CLASS);
    
public voidsetContentLocation(byte[] value)
Set X-Mms-Content-Location value.

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

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

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

        mPduHeaders.setOctet(value, PduHeaders.DELIVERY_REPORT);
    
public voidsetExpiry(long value)
Set X-Mms-Expiry value.

param
value the value
throws
RuntimeException if an undeclared error occurs.

        mPduHeaders.setLongInteger(value, PduHeaders.EXPIRY);
    
public voidsetFrom(EncodedStringValue value)
Set From value.

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

        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. RuntimeException if an undeclared error occurs.

        mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS);
    
public voidsetMessageSize(long value)
Set X-Mms-Message-Size value.

param
value the value
throws
RuntimeException if an undeclared error occurs.

        mPduHeaders.setLongInteger(value, PduHeaders.MESSAGE_SIZE);
    
public voidsetSubject(EncodedStringValue value)
Set subject.

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

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

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

        mPduHeaders.setTextString(value, PduHeaders.TRANSACTION_ID);