Package com.volantis.mps.recipient

Examples of com.volantis.mps.recipient.RecipientException


            recipients = getRecipients(request, RECIPIENTS);
            ccRecipients = getRecipients(request, CCRECIPIENTS);
            bccRecipients = getRecipients(request, BCCRECIPIENTS);

            if (recipients == null) {
                throw new RecipientException("No recipients could be found");
            }
        } catch (Exception ae) {
            logger.error("Error loading recipient set", ae);

            writeError(request, response, ae);
View Full Code Here


                result = factory.createSMTPAddress(
                        failure.getAddress().getAddress());
            } catch (MalformedAddressException e) {
                LOGGER.warn("unable-to-convert-mps-address",
                        failure.getAddress().getAddress());
                throw new RecipientException(
                        EXCEPTION_LOCALIZER.format(
                                "unable-to-convert-mps-address",
                                failure.getAddress().getAddress()));
            }
        } else if (failure.getMSISDN() != null) {
            try {
                result = factory.createMSISDN(
                        failure.getMSISDN());
            } catch (MalformedAddressException e) {
                LOGGER.warn("unable-to-convert-mps-address",
                        failure.getMSISDN());
                throw new RecipientException(
                        EXCEPTION_LOCALIZER.format(
                                "unable-to-convert-mps-address",
                                failure.getMSISDN()));
            }
        } else {

            // We should have detected this before now, so this is really
            // unexpected and indicates a bug in how the initial recipient
            // list is processed.
            throw new RecipientException(
                    EXCEPTION_LOCALIZER.format(
                            "unable-to-convert-mps-address",
                            failure));
        }
        return result;
View Full Code Here

    private javax.mail.internet.InternetAddress getInternetAddress(String value) throws RecipientException {
        try {
            return new InternetAddress(value);
        } catch (AddressException e) {
            throw new RecipientException(
                    EXCEPTION_LOCALIZER.format(
                            "mmsaddress-creation-failed", value),
                    e);
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mps.recipient.RecipientException

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.