org.sourceforge.jemmrpc.shared
Class MessageWrapper

java.lang.Object
  extended by org.sourceforge.jemmrpc.shared.MessageWrapper
All Implemented Interfaces:
java.io.Serializable

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

A wrapper giving necessary processing information to the receiver.

Author:
Rory Graves
See Also:
Serialized Form

Constructor Summary
MessageWrapper(java.lang.String dThreadId, MessageType fMsgType, Message fMessage)
          Creates a MessageWrapper.
 
Method Summary
 Message getMessage()
          Retrieves the contained Message
 MessageType getMsgType()
          Returns the type of the message being sent.
 java.lang.String getThreadId()
          Retrieves the thread id (or null if not applicable) from the sender.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageWrapper

public MessageWrapper(java.lang.String dThreadId,
                      MessageType fMsgType,
                      Message fMessage)
Creates a MessageWrapper.

Parameters:
dThreadId - The client id.
fMsgType - The type of the message.
fMessage - The message to send.
Method Detail

getMessage

public Message getMessage()
Retrieves the contained Message

Returns:
The contained message.

getMsgType

public MessageType getMsgType()
Returns the type of the message being sent.

Returns:
The message type.

getThreadId

public java.lang.String getThreadId()
Retrieves the thread id (or null if not applicable) from the sender.

Returns:
The threadId if set or null.


Copyright © 2008. All Rights Reserved.