org.nhindirect.xd.common
Class DirectMessage

java.lang.Object
  extended by org.nhindirect.xd.common.DirectMessage

public class DirectMessage
extends Object

Abstract representation of a message sent via Direct.

Author:
beau

Constructor Summary
DirectMessage(String sender, Collection<String> receivers)
          Create a new DirectMessage object.
 
Method Summary
 void addDocument(DirectDocument2 document)
           
 void addDocument(File file)
          Deprecated. 
 String getBody()
          Get the value of body.
 DirectDocuments getDirectDocuments()
           
 Collection<String> getReceivers()
          Get the value of receivers.
 String getSender()
          Get the value of sender.
 String getSubject()
          Get the value of subject.
 void setBody(String body)
          Set the value of body.
 void setDirectDocuments(DirectDocuments directDocuments)
           
 void setReceivers(Collection<String> receivers)
          Set the value of receivers.
 void setSender(String sender)
          Set the value of sender.
 void setSubject(String subject)
          Set the value of subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectMessage

public DirectMessage(String sender,
                     Collection<String> receivers)
Create a new DirectMessage object.

Parameters:
sender - The value of sender.
receivers - The value of receivers.
Method Detail

addDocument

@Deprecated
public void addDocument(File file)
                 throws Exception
Deprecated. 

Add a document to the message.

Parameters:
document - The document to add.
Throws:
Exception

addDocument

public void addDocument(DirectDocument2 document)

getSender

public String getSender()
Get the value of sender.

Returns:
the value of sender.

setSender

public void setSender(String sender)
Set the value of sender.

Parameters:
sender - The value of sender.

getReceivers

public Collection<String> getReceivers()
Get the value of receivers.

Returns:
the value of receivers.

setReceivers

public void setReceivers(Collection<String> receivers)
Set the value of receivers.

Parameters:
receivers - The value of receivers.

getBody

public String getBody()
Get the value of body.

Returns:
the body.

setBody

public void setBody(String body)
Set the value of body.

Parameters:
body - The body to set.

setSubject

public void setSubject(String subject)
Set the value of subject.

Parameters:
subject - The subject to set.

getSubject

public String getSubject()
Get the value of subject.

Returns:
the subject.

getDirectDocuments

public DirectDocuments getDirectDocuments()
Returns:
the directDocuments

setDirectDocuments

public void setDirectDocuments(DirectDocuments directDocuments)
Parameters:
directDocuments - the directDocuments to set


Copyright © 2010-2011. All Rights Reserved.