jadex.standalone.transport
Class MessageEnvelope

java.lang.Object
  extended by jadex.standalone.transport.MessageEnvelope

public class MessageEnvelope
extends Object

The message envelope holding the native message, the receivers and the message type.


Field Summary
protected  Map message
          The message.
protected  String message_type
          The message type.
protected  Collection receivers
          The receivers.
 
Constructor Summary
MessageEnvelope()
          Create a new message envelope.
MessageEnvelope(Map message, Collection receivers, String message_type)
          Create a new message envelope.
 
Method Summary
 void addReceiver(IComponentIdentifier receiver)
          Add a receiver.
 Map getMessage()
          Get native message.
 IComponentIdentifier[] getReceivers()
          Get the receivers.
 String getTypeName()
          Get the type (e.g.
 void setMessage(Map message)
          Set native message.
 void setReceivers(IComponentIdentifier[] receivers)
          Get the receivers.
 void setTypeName(String messagetypename)
          Set the type (e.g.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected Map message
The message.


receivers

protected Collection receivers
The receivers.


message_type

protected String message_type
The message type.

Constructor Detail

MessageEnvelope

public MessageEnvelope()
Create a new message envelope. (bean constructor)


MessageEnvelope

public MessageEnvelope(Map message,
                       Collection receivers,
                       String message_type)
Create a new message envelope.

Method Detail

getMessage

public Map getMessage()
Get native message.

Returns:
The native message.

setMessage

public void setMessage(Map message)
Set native message.

Parameters:
message - The native message.

getReceivers

public IComponentIdentifier[] getReceivers()
Get the receivers.


setReceivers

public void setReceivers(IComponentIdentifier[] receivers)
Get the receivers.


addReceiver

public void addReceiver(IComponentIdentifier receiver)
Add a receiver.


setTypeName

public void setTypeName(String messagetypename)
Set the type (e.g. "fipa").

Parameters:
messagetypename -

getTypeName

public String getTypeName()
Get the type (e.g. "fipa").


toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
The string representation.


Copyright © 2010. All Rights Reserved.