Overview | Package | Class | Use | Tree | Serialized | Deprecated | Index | Help
| ABLE 2.3.0 07/13/2005 14:21:00
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.ibm.conversation
Interface MessageHandle

All Known Implementing Classes:
  BasicMessageHandle

public interface MessageHandle

The MessageHandle interface represents a message received by, or to be delivered by, the messaging system.

MessageHandles are what gets passed between Conversations and MessageSystemAdapters. Note: the utility of this interface is not clear at present; it may turn out to be preferable to pass the message object directly, without this wrapper.

Design Q & A:

- Q: Is there any reason to add a "messageObjectType" string?
  A: Probably not. Its only use would be for testing it against a fixed set of alternatives defined at compile time, so it's equivalent to "instanceof".
- Q: How about a "messageSystemType" string?
  A: Possibly. It would help identify what kind of ConversationMetaData would be needed for the conversation the message was associated with. E.g., it could be fed into a ConversationMetaDataFactory. Similar considerations apply to the MessageTransforms.
- Q: Is there any reason to add a "sender"?
  A: Probably not. The objects used to represent sender information vary across messaging systems. Therefore, that kind of information should stay encapsulated inside the ConversationMetaData.

Method Summary
`java.lang.Object` | `getMessage()` Returns the message object.
`void` | `setMessage(java.lang.Object newObject)` Sets the message object.

Method Detail

### getMessage

    public java.lang.Object getMessage()

  Returns the message object.

  Returns:
    The message object.

### setMessage

    public void setMessage(java.lang.Object newObject)

  Sets the message object.

  Parameters:
    `newObject` - The message object.

Overview | Package | Class | Use | Tree | Serialized | Deprecated | Index | Help
| ABLE 2.3.0 07/13/2005 14:21:00
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

(C) Copyright IBM Corporation 1999, 2005