oracle.panama.messaging.push
Class Status

java.lang.Object
  |
  +--oracle.panama.messaging.push.Status

public class Status
extends java.lang.Object

Status class reports the delivery status of a message ID. Status helps client to track message status.
Status may have following fields:
- status code: what status?
- status string: what status?
- time stamp: when did that status happen?
- recipient's address: who's status?
- message ID : who's status?
- transport: what is the delivery type?

Note:
Never access any public data fields inside this class directly, because they are for internal use in this release and will be changed in coming releases. Always use public methods of this class.


Field Summary
TypeField
 AddressData address
           
static int DELIVERY_TO_DEVICE_FAILURE
           
static int DELIVERY_TO_DEVICE_SUCCESS
           
static int DELIVERY_TO_SERVER_FAILURE
           
static int DELIVERY_TO_SERVER_SUCCESS
           
static int INTERMEDIATE_NOTIFICATION
           
 java.lang.String mContent
           
 java.lang.String messageID
           
 int mType
           
static int READ_ACKNOWLEDGEMENT_FAILURE
           
static int READ_ACKNOWLEDGEMENT_SUCCESS
           
 long timestamp
           
 java.lang.String transport
           
static int UNKNOWN_FAILURE
           
static int UNKNOWN_STATUS_TYPE
          Supported status ids.
static int USER_REPLY_ACKNOWLEDGEMENT
           
 
Constructor Summary
Status()
          Constructor
 
Method Summary
TypeMethod
 AddressData getAddress()
          get address of the status
 java.lang.String getContent()
          Get the status content.
 java.lang.String getMessageID()
          get message ID of the status
 long getTimestamp()
          get time stamp of the status
 java.lang.String getTransport()
          get transport of the status
 int getType()
          Get the status type.
 void setAddress(AddressData addr)
          set address of the status
 void setContent(java.lang.String content)
          Set the status content.
 void setMessageID(java.lang.String id)
          set message ID of the status
 void setTimestamp(long timestamp)
          set time stamp of the status
 void setTransport(java.lang.String trans)
          set transport of the status
 void setType(int type)
          Set the status type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_STATUS_TYPE

public static final int UNKNOWN_STATUS_TYPE
Supported status ids.

UNKNOWN_FAILURE

public static final int UNKNOWN_FAILURE

READ_ACKNOWLEDGEMENT_FAILURE

public static final int READ_ACKNOWLEDGEMENT_FAILURE

DELIVERY_TO_DEVICE_FAILURE

public static final int DELIVERY_TO_DEVICE_FAILURE

DELIVERY_TO_SERVER_FAILURE

public static final int DELIVERY_TO_SERVER_FAILURE

INTERMEDIATE_NOTIFICATION

public static final int INTERMEDIATE_NOTIFICATION

DELIVERY_TO_SERVER_SUCCESS

public static final int DELIVERY_TO_SERVER_SUCCESS

DELIVERY_TO_DEVICE_SUCCESS

public static final int DELIVERY_TO_DEVICE_SUCCESS

READ_ACKNOWLEDGEMENT_SUCCESS

public static final int READ_ACKNOWLEDGEMENT_SUCCESS

USER_REPLY_ACKNOWLEDGEMENT

public static final int USER_REPLY_ACKNOWLEDGEMENT

mContent

public java.lang.String mContent

mType

public int mType

timestamp

public long timestamp

messageID

public java.lang.String messageID

address

public AddressData address

transport

public java.lang.String transport
Constructor Detail

Status

public Status()
Constructor
Method Detail

getContent

public java.lang.String getContent()
Get the status content.
Returns:
the status content.

getType

public int getType()
Get the status type.
Returns:
the status type.

setContent

public void setContent(java.lang.String content)
Set the status content.
Parameters:
content - the status content.

setType

public void setType(int type)
Set the status type.
Parameters:
type - the status type.

getTimestamp

public long getTimestamp()
get time stamp of the status

setTimestamp

public void setTimestamp(long timestamp)
set time stamp of the status

getMessageID

public java.lang.String getMessageID()
get message ID of the status

setMessageID

public void setMessageID(java.lang.String id)
set message ID of the status

setAddress

public void setAddress(AddressData addr)
set address of the status

getAddress

public AddressData getAddress()
get address of the status

setTransport

public void setTransport(java.lang.String trans)
set transport of the status

getTransport

public java.lang.String getTransport()
get transport of the status

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object