Package mireka.address

Examples of mireka.address.MailAddressFactory


     * @category GETSET
     */
    public void setCanonical(String mailbox) {
        destination = new AliasDestination();
        try {
            destination.setRecipient(new MailAddressFactory()
                    .createRecipient(mailbox));
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here


     * GETSET
     */
    public void setCanonical(String mailbox) {
        destination = new AliasDestination();
        try {
            destination.setRecipient(new MailAddressFactory()
                    .createRecipient(mailbox));
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

     * @category GETSET
     */
    public void setRemotePart(String remotePart) {
        this.remotePartString = remotePart;
        this.remotePartObject =
                new MailAddressFactory()
                        .createRemotePartFromDisplayableText(remotePart);
    }
View Full Code Here

    private void sendMail(Mail srcMail, MimeMessage mimeMessage)
            throws RejectExceptionExt {
        Mail mail = new Mail();
        mail.from = reversePath;
        try {
            mail.recipients.add(new MailAddressFactory()
                    .createRecipient(recipient));
        } catch (ParseException e) {
            throw new ConfigurationException(e);
        }
View Full Code Here

    /**
     * @category GETSET
     */
    public void setReversePath(String reversePath) {
        this.reversePath =
                new MailAddressFactory()
                        .createReversePathAlreadyVerified(reversePath);
    }
View Full Code Here

    public boolean isSatisfiedBy(RemotePart remotePart) {
        return remoteParts.contains(remotePart);
    }

    public void addDomain(String remotePart) {
        remoteParts.add(new MailAddressFactory()
                .createRemotePartFromDisplayableText(remotePart));
    }
View Full Code Here

*/
public class RecipientSpecificationFactory {
    private final MailAddressFactory mailAddressFactory;

    public RecipientSpecificationFactory() {
        this(new MailAddressFactory());
    }
View Full Code Here

     * @category GETSET
     */
    public void setRecipient(String recipient) {
        try {
            this.recipient =
                    new MailAddressFactory().createRecipient(recipient);
        } catch (ParseException e) {
            throw new ConfigurationException();
        }
    }
View Full Code Here

    }

    public Mail readFromProperties(DataProperties props) {
        Mail mail = new Mail();
        mail.from =
                new MailAddressFactory().createReversePathAlreadyVerified(props
                        .getString("from"));
        mail.recipients =
                props.getList("recipients",
                        new StringToElementConverter<Recipient>() {

                            @Override
                            public Recipient toElement(String s) {
                                return new MailAddressFactory()
                                        .createRecipientAlreadyVerified(s);
                            }

                        });
        mail.arrivalDate = props.getDate("arrivalDate");
View Full Code Here

    }

    private ReversePath convertToReversePath(String reversePath)
            throws RejectException {
        try {
            return new MailAddressFactory().createReversePath(reversePath);
        } catch (ParseException e) {
            logger.debug("Syntax error in reverse path " + reversePath, e);
            throw new RejectException(553, "Syntax error in reverse path "
                    + reversePath);
        }
View Full Code Here

TOP

Related Classes of mireka.address.MailAddressFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.