Package mireka.destination

Examples of mireka.destination.Destination


            new ArrayList<RecipientDestinationMapper>();

    @Override
    public Destination lookup(Recipient recipient) {
        for (RecipientDestinationMapper mapper : mappers) {
            Destination destination = mapper.lookup(recipient);
            if (destination != null)
                return destination;
        }
        return null;
    }
View Full Code Here


        }

        @Override
        public FilterReply verifyRecipient(RecipientContext recipientContext)
                throws RejectException {
            Destination currentDestination =
                    recipientContext.isDestinationAssigned() ? recipientContext
                            .getDestination() : null;
            if (currentDestination == null) {
                Destination destination =
                        lookupDestinationByResolvingAliases(recipientContext.recipient);
                recipientContext.setDestination(destination);
            } else if (currentDestination instanceof AliasDestination) {
                Destination destination =
                        lookupDestinationByResolvingAliases(((AliasDestination) currentDestination)
                                .getRecipient());
                recipientContext.setDestination(destination);
            }
            return FilterReply.NEUTRAL;
View Full Code Here

            return FilterReply.NEUTRAL;
        }

        private Destination lookupDestinationByResolvingAliases(
                Recipient recipient) {
            Destination destination;
            Recipient canonicalRecipient = recipient;
            int lookups = 0;
            while (true) {
                if (lookups > 10) {
                    throw new ConfigurationException(
View Full Code Here

TOP

Related Classes of mireka.destination.Destination

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.