org.spicefactory.cinnamon.io
Interface Envelope

All Known Implementing Classes:
NetConnectionEnvelope

public interface Envelope

Represents a request or response that contains one or more messages.

Author:
Jens Halm

Method Summary
 void addMessage(MessageHolder message)
          Adds the specified message to this envelope
 List<MessageHolder> getMessages()
          Returns all messages contained in this envelope.
 

Method Detail

addMessage

void addMessage(MessageHolder message)
Adds the specified message to this envelope

Parameters:
message - the message to add to this envelope

getMessages

List<MessageHolder> getMessages()
Returns all messages contained in this envelope.

Returns:
all messages contained in this envelope