org.apache.james.api.jms
Interface MailBuilder

All Known Implementing Classes:
SimpleMailBuilder

public interface MailBuilder

Builds mail. Factors out strategy for building Mail from text or bytes.


Method Summary
 org.apache.mailet.Mail build(java.lang.String text)
          Builds a Mail from the given text.
 

Method Detail

build

org.apache.mailet.Mail build(java.lang.String text)
                             throws javax.mail.MessagingException
Builds a Mail from the given text.

Parameters:
text - message text
Returns:
Mail, not null
Throws:
javax.mail.MessagingException


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.