com.agentfactory.platform.mts
Class XMLEnvelope

java.lang.Object
  extended by com.agentfactory.platform.mts.Envelope
      extended by com.agentfactory.platform.mts.XMLEnvelope

public class XMLEnvelope
extends Envelope

This is a concrete implementation of the Envelope class that parses some text that contains an XML version of the envelope.


Field Summary
 
Fields inherited from class com.agentfactory.platform.mts.Envelope
aclRepresentation, date, from, intendedReceiver, payloadEncoding, payloadLength, to
 
Constructor Summary
XMLEnvelope()
           
 
Method Summary
static java.util.ArrayList newInstance(java.lang.String text)
          This factory method returns an ArrayList of XMLEnvelope objects - one per envelope defined in the message.
 java.lang.String toString()
          Create a String that containing the message envelope in a form that is compliant with the FIPA XML Specification.
 
Methods inherited from class com.agentfactory.platform.mts.Envelope
getAclRepresentation, getDate, getFrom, getIntendedReceiver, getLogMessage, getPayloadEncoding, getPayloadLength, getTo, setAclRepresentation, setDate, setFrom, setIntendedReceiver, setPayloadEncoding, setPayloadLength, setTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLEnvelope

public XMLEnvelope()
Method Detail

newInstance

public static java.util.ArrayList newInstance(java.lang.String text)
This factory method returns an ArrayList of XMLEnvelope objects - one per envelope defined in the message.

Parameters:
text - the XML in string format
Returns:
an ArrayList of XMLEnvelope objects!

toString

public java.lang.String toString()
Create a String that containing the message envelope in a form that is compliant with the FIPA XML Specification.

Overrides:
toString in class java.lang.Object
Returns:
an xml String