Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common.ems
Class EMSMessage

java.lang.Object
  extended byoracle.panama.messaging.common.ems.EMSMessage

All Implemented Interfaces:
java.io.Serializable

public class EMSMessage
extends java.lang.Object
implements java.io.Serializable

This class can be used to create EMS (Enhanced Messaging Service) Message that can be set as content of the Message object and can then be sent out as binary SMS. EMS message contains a text content and a list of service objects.

See Also:
EMSService, Serialized Form

Field Summary
static java.lang.String MIME
MIME type for EMS Message object.

Constructor Summary
EMSMessage()
Constructor.

Method Summary
void addService(EMSService obj)
Adds the given service object to the list of services.
boolean equals(java.lang.Object other)
Checks for equality of two EMSMessage objects.
EMSService[] getServices()
Gets the list of services for this object.
java.lang.String getText()
Get the message text.
int hashCode()
Generates and returns hash code for this object.
void removeAllServices()
Removes all the services from this EMSMessage object.
void removeService(EMSService obj)
removes the given service from the list of services.
void setText(java.lang.String text)
Sets the text for the message object.

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

Field Detail

MIME

public static final java.lang.String MIME
MIME type for EMS Message object.
See Also:
Constant Field Values

Constructor Detail

EMSMessage

public EMSMessage()
Constructor.

Method Detail

addService

public void addService(EMSService obj)
Adds the given service object to the list of services.
Parameters:
obj - the service object to add.

equals

public boolean equals(java.lang.Object other)
Checks for equality of two EMSMessage objects.
Parameters:
other - the object to be tested for equality with this object.
Returns:
true if the two objects are equal else returns false.

getServices

public EMSService[] getServices()
Gets the list of services for this object.
Returns:
list of services.

getText

public java.lang.String getText()
Get the message text.
Returns:
the text.

hashCode

public int hashCode()
Generates and returns hash code for this object.
Returns:
the hash code.

removeAllServices

public void removeAllServices()
Removes all the services from this EMSMessage object.

removeService

public void removeService(EMSService obj)
removes the given service from the list of services.
Parameters:
obj - service to remove.

setText

public void setText(java.lang.String text)
Sets the text for the message object.
Parameters:
text - the text to be set.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.