com.webmethods.caf.faces.data.email
Class MockEmailTransport.SentMessage

java.lang.Object
  extended by com.webmethods.caf.faces.data.email.MockEmailTransport.SentMessage
Enclosing class:
MockEmailTransport

public static class MockEmailTransport.SentMessage
extends Object

Container class for message sent through the mock transport.


Field Summary
protected  Address[] addresses
           
protected  Message message
           
 
Constructor Summary
MockEmailTransport.SentMessage()
          Default constructor.
MockEmailTransport.SentMessage(Message message, Address[] addresses)
          Create a sent message object that contains a message and the addresses contained in this sent message.
 
Method Summary
 Address[] getAddresses()
          Get an array of addresses contained in the sent message.
 Message getMessage()
          Get the message sent.
 void setAddresses(Address[] addresses)
          Set the array of addresses contained in the sent message.
 void setMessage(Message message)
          Set message sent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

protected Message message

addresses

protected Address[] addresses
Constructor Detail

MockEmailTransport.SentMessage

public MockEmailTransport.SentMessage()
Default constructor. Creates an empty sent message class.


MockEmailTransport.SentMessage

public MockEmailTransport.SentMessage(Message message,
                                      Address[] addresses)
Create a sent message object that contains a message and the addresses contained in this sent message.

Parameters:
message - The message sent.
addresses - The array of address contained in the message.
Method Detail

getMessage

public Message getMessage()
Get the message sent.

Returns:
The MockEmailTransport.SentMessage sent.

setMessage

public void setMessage(Message message)
Set message sent.

Parameters:
The - MockEmailTransport.SentMessage to send.

getAddresses

public Address[] getAddresses()
Get an array of addresses contained in the sent message.

Returns:
An array of Address contained in this sent message.

setAddresses

public void setAddresses(Address[] addresses)
Set the array of addresses contained in the sent message.

Parameters:
addresses - A list of Address contained in this sent message.