All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.service.mail.message.Recipients Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
package com.jpattern.service.mail.message;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author Claudio Quaresima - [email protected] - 01/set/09 20:58:25
 *
 * @version $Id$
 */
public class Recipients implements IRecipients {
    

        private static final long serialVersionUID = 1L;
        private List _recipients;
        private IRecipient _fromRecipient;

        public Recipients() {
            _recipients = new ArrayList();
        }
        
        public void from(IRecipient aRecipient) {
            _fromRecipient = aRecipient;
        }
        
        public void addRecipient(IRecipient aRecipient) {
                _recipients.add(aRecipient);
        }
        
        public void addRecipient (AuthenticadRecipient authenticadRecipient)
        {
        	_recipients.add(authenticadRecipient);
        }
        
        public void writeOn(IMessageAddress aMessageAddress) {
            aMessageAddress.from(_fromRecipient);
            aMessageAddress.to( _recipients );
        }        
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy