Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.transport
Class Status

java.lang.Object
  extended byoracle.panama.messaging.transport.Status

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
Report

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.

See Also:
Serialized Form

Field Summary
static int DELIVERY_TO_DEVICE_FAILURE
Status type: message is failed to deliver to the device.
static int DELIVERY_TO_DEVICE_SUCCESS
Status type: message is delivered to the device.
static int DELIVERY_TO_SERVER_FAILURE
Status type: message is failed to deliver to the external gateway.
static int DELIVERY_TO_SERVER_SUCCESS
Status type: message is delivered to the external gateway.
static int INTERMEDIATE_NOTIFICATION
Status type: intermediate notification.
static int READ_ACKNOWLEDGEMENT_FAILURE
Status type: failed to read the message.
static int READ_ACKNOWLEDGEMENT_SUCCESS
Status type: message has been read.
static int UNKNOWN_FAILURE
Status type: unknown failure.
static int UNKNOWN_STATUS_TYPE
Status type: unknown status type.
static int USER_REPLY_ACKNOWLEDGEMENT
Status type: message has been replied.
static int USER_REPLY_ACKNOWLEDGEMENT_FAILURE
Status type: failed to reply to the message.

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

DELIVERY_TO_DEVICE_FAILURE

public static final int DELIVERY_TO_DEVICE_FAILURE
Status type: message is failed to deliver to the device.
See Also:
Constant Field Values

DELIVERY_TO_DEVICE_SUCCESS

public static final int DELIVERY_TO_DEVICE_SUCCESS
Status type: message is delivered to the device.
See Also:
Constant Field Values

DELIVERY_TO_SERVER_FAILURE

public static final int DELIVERY_TO_SERVER_FAILURE
Status type: message is failed to deliver to the external gateway.
See Also:
Constant Field Values

DELIVERY_TO_SERVER_SUCCESS

public static final int DELIVERY_TO_SERVER_SUCCESS
Status type: message is delivered to the external gateway.
See Also:
Constant Field Values

INTERMEDIATE_NOTIFICATION

public static final int INTERMEDIATE_NOTIFICATION
Status type: intermediate notification.
See Also:
Constant Field Values

READ_ACKNOWLEDGEMENT_FAILURE

public static final int READ_ACKNOWLEDGEMENT_FAILURE
Status type: failed to read the message.
See Also:
Constant Field Values

READ_ACKNOWLEDGEMENT_SUCCESS

public static final int READ_ACKNOWLEDGEMENT_SUCCESS
Status type: message has been read.
See Also:
Constant Field Values

UNKNOWN_FAILURE

public static final int UNKNOWN_FAILURE
Status type: unknown failure.
See Also:
Constant Field Values

UNKNOWN_STATUS_TYPE

public static final int UNKNOWN_STATUS_TYPE
Status type: unknown status type.
See Also:
Constant Field Values

USER_REPLY_ACKNOWLEDGEMENT

public static final int USER_REPLY_ACKNOWLEDGEMENT
Status type: message has been replied.
See Also:
Constant Field Values

USER_REPLY_ACKNOWLEDGEMENT_FAILURE

public static final int USER_REPLY_ACKNOWLEDGEMENT_FAILURE
Status type: failed to reply to the message.
See Also:
Constant Field Values

Constructor Detail

Status

public Status()
Constructor. Construct a status object with unknown status type, current timestamp and empty status content.

Method Detail

getContent

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

getTimeStamp

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

getType

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

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.
Throws:
java.io.IOException
java.lang.ClassNotFoundException

setContent

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

setTimeStamp

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

setType

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

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.
Throws:
java.io.IOException

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.