Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.transport
Class Status

java.lang.Object
  |
  +--oracle.panama.messaging.transport.Status
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class Status
extends java.lang.Object
implements java.io.Externalizable

A status is some information about a message sent. It is reported to the transport system by a service center. This information could be a delivery notification, a failure notification, a state update, or something else.

Author:
jxiang
See Also:
Serialized Form

Field Summary
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
          Some supported status ids.
static int READ_ACKNOWLEDGEMENT_FAILURE
           
static int READ_ACKNOWLEDGEMENT_SUCCESS
           
static int UNKNOWN_FAILURE
           
static int UNKNOWN_STATUS_TYPE
           
static int USER_REPLY_ACKNOWLEDGEMENT
           
static int USER_REPLY_ACKNOWLEDGEMENT_FAILURE
           

 

Constructor Summary
Status()
          Constructor.

 

Method Summary
 java.lang.String getContent()
          Get the status content.
 long getTimeStamp()
          Get the time stamp.
 int getType()
          Get the status type.
 void readExternal(java.io.ObjectInput oi)
          Read a status object from a stream.
 void setContent(java.lang.String content)
          Set the status content.
 void setTimeStamp(long time)
          Set the time stamp.
 void setType(int type)
          Set the status type.
 void writeExternal(java.io.ObjectOutput oo)
          Write a status object to a stream.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

INTERMEDIATE_NOTIFICATION

public static final int INTERMEDIATE_NOTIFICATION
Some supported status ids.
See Also:
Constant Field Values

DELIVERY_TO_SERVER_SUCCESS

public static final int DELIVERY_TO_SERVER_SUCCESS
See Also:
Constant Field Values

DELIVERY_TO_DEVICE_SUCCESS

public static final int DELIVERY_TO_DEVICE_SUCCESS
See Also:
Constant Field Values

READ_ACKNOWLEDGEMENT_SUCCESS

public static final int READ_ACKNOWLEDGEMENT_SUCCESS
See Also:
Constant Field Values

USER_REPLY_ACKNOWLEDGEMENT

public static final int USER_REPLY_ACKNOWLEDGEMENT
See Also:
Constant Field Values

DELIVERY_TO_SERVER_FAILURE

public static final int DELIVERY_TO_SERVER_FAILURE
See Also:
Constant Field Values

DELIVERY_TO_DEVICE_FAILURE

public static final int DELIVERY_TO_DEVICE_FAILURE
See Also:
Constant Field Values

READ_ACKNOWLEDGEMENT_FAILURE

public static final int READ_ACKNOWLEDGEMENT_FAILURE
See Also:
Constant Field Values

USER_REPLY_ACKNOWLEDGEMENT_FAILURE

public static final int USER_REPLY_ACKNOWLEDGEMENT_FAILURE
See Also:
Constant Field Values

UNKNOWN_FAILURE

public static final int UNKNOWN_FAILURE
See Also:
Constant Field Values

UNKNOWN_STATUS_TYPE

public static final int UNKNOWN_STATUS_TYPE
See Also:
Constant Field Values
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.

getTimeStamp

public long getTimeStamp()
Get the time stamp.
Returns:
the time stamp.

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.

setTimeStamp

public void setTimeStamp(long time)
Set the time stamp.
Parameters:
time - the time stamp.

readExternal

public void readExternal(java.io.ObjectInput oi)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read a status object from a stream.
Specified by:
readExternal in interface java.io.Externalizable
Parameters:
oi - the stream to read from.
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput oo)
                   throws java.io.IOException
Write a status object to a stream.
Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
oo - the stream to write to.
java.io.IOException

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.