|
SAP NetWeaver 7.30 Enterprise Portal (SP07) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.rtmf.messagingimpl.messages.RTMFMessage
public class RTMFMessage
The class that represents all RTMF messages. Each message consists of a set of predefined properties,
and enables you to add custom parameters.
RTMFMessage is created using RTMFMessageFactory.
There are four predefined RTMFMessage properties: Event, From, Action, Destination.
They differ from custom RTMF parameters because they can be used as selectors for filtering messages
when a service registers to receive another service's messages (see RTMFService).
When setting the event property or publishing an event, the event name can contain the following characters:
A..Z, a..z, 0..9, or \ | ~ ! @ # $ % ^ * ( ) { } [ ] _ + = - / , . ?
| Nested Class Summary | |
|---|---|
static class |
RTMFMessage.MessageProperty
Deprecated. For internal use only. |
| Field Summary | |
|---|---|
static String |
ACTION_ID_PROPERTY
Deprecated. A constant representing the RTMFMessage Action property. |
static String |
DESTINATION_PROPERTY
Deprecated. A constant representing the RTMFMessage Destination property. |
static String |
EVENT_PROPERTY
Deprecated. A constant representing the RTMFMessage Event property. |
static String |
FROM_PROPERTY
Deprecated. A constant representing the RTMFMessage From property. |
| Constructor Summary | |
|---|---|
protected |
RTMFMessage(String msgType)
Deprecated. For internal use only. |
| Method Summary | |
|---|---|
String |
getAction()
Deprecated. Returns the Action property of the message. |
List |
getAllParamsKeys()
Deprecated. Returns the keys of all the custom parameters. |
String |
getDestination()
Deprecated. Returns the Destination property of the message, which represents the entity to which the message is sent. |
String |
getEvent()
Deprecated. Returns the Event property of the message. |
String |
getFrom()
Deprecated. Returns the From property, which represents the entity that is sending the message. |
String |
getMessage()
Deprecated. Returns an XML representation of the message. |
String |
getMessageType()
Deprecated. Returns the message class name, indicating the message type. |
String |
getParamValue(String paramName)
Deprecated. Returns the value of a specified parameter. |
List |
getParamValues(String paramName)
Deprecated. Returns a list of all the values of a specified parameter. |
void |
publishEvent(String eventName)
Deprecated. Publishes the message to all the subscribers of the specified event, and sets the message's Destination and Event properties to the event name. |
void |
publishEventToUser(String eventName,
String userUniqueId)
Deprecated. Publishes the specified event to a specified user. |
void |
publishToTopic(String topicName)
Deprecated. Publishes the RTMF message to the specified topic service. |
void |
putParam(String paramName,
List paramValuesList)
Deprecated. Adds a custom parameter to the message. |
void |
putParam(String paramName,
String newValue)
Deprecated. Adds a custom parameter to the message. |
void |
removeParam(String paramName)
Deprecated. Removes a specified parameter. |
void |
sendToQueue(String queueName)
Deprecated. Sends the message to the specified queue service. |
List<RTMFMessage> |
sendToService(String destinationService)
Deprecated. Sends a message to the specified service and sets the message's Destination property to the name of the service. |
void |
setAction(String action)
Deprecated. Sets the Action property of the message. |
void |
setDestination(String destination)
Deprecated. Sets the message's Destination property, which represents the entity to which the message is sent. |
void |
setEvent(String event)
Deprecated. Sets the Event property of the message. |
void |
setFrom(String from)
Deprecated. Sets the message's From property, which represents the entity that is sending the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EVENT_PROPERTY
public static final String FROM_PROPERTY
public static final String ACTION_ID_PROPERTY
public static final String DESTINATION_PROPERTY
| Constructor Detail |
|---|
protected RTMFMessage(String msgType)
| Method Detail |
|---|
public void setFrom(String from)
from - the entity that created the messagepublic void setAction(String action)
action - the specified actionpublic void setDestination(String destination)
publishEventToUser(String, String)
or publishEvent(String eventName), this value is set automatically to the
name of the event.sendToService(String), this value is set automatically
to the name of the service.
destination - the Destination propertypublic void setEvent(String event)
publishEventToUser(String, String))
or publishEvent(String eventName), this value is set automatically to the
name of the event.
event - the name of the eventpublic String getFrom()
public String getAction()
public String getDestination()
public String getEvent()
public void putParam(String paramName,
String newValue)
putParam(String, String).
paramName - a parameter keynewValue - a new value to be added to the parameter
public void putParam(String paramName,
List paramValuesList)
putParam(String, List).
paramName - the key of the parameterparamValuesList - list of values for the parameterpublic void removeParam(String paramName)
paramName - the key of the parameter to removepublic String getParamValue(String paramName)
getParamValues(String).
paramName - the key of a parameter
public List getParamValues(String paramName)
paramName - the key of a parameter
public List getAllParamsKeys()
public List<RTMFMessage> sendToService(String destinationService)
RTMFSyncService.onMessageArrived(RTMFMessage)
if the service is a sync service (see RTMFSyncService).
destinationService - the name of the destination RTMF service
public String getMessage()
public void publishEvent(String eventName)
throws RTMFException
publishEventToUser(String, String).
eventName - the name of the event
RTMFException - if publishing fails (see RTMFException RTMFFreezeException)
public void publishEventToUser(String eventName,
String userUniqueId)
throws RTMFException
publishEvent(String).
For more information regarding behavior during a JMS failure, see publishEvent(String).
eventName - the name of the eventuserUniqueId - the user's unique Id (UME).
RTMFException - if publishing fails (see RTMFException and RTMFFreezeException)
public void publishToTopic(String topicName)
throws RTMFException
topicName - the name of the topic service
RTMFException - if publishing fails (see RTMFException)
public void sendToQueue(String queueName)
throws RTMFException
queueName - a string representing the queue name
RTMFException - if publishing fails (see RTMFException)public String getMessageType()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP07) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||