Examples of MacroExpand


Examples of org.apache.james.jspf.core.MacroExpand

    MacroExpand defIp6me = null;

    protected void setUp() throws Exception {
        super.setUp();
        defIp4me = new MacroExpand(new ConsoleLogger(), null);
        defIp6me = new MacroExpand(new ConsoleLogger(), null);
    }
View Full Code Here

Examples of org.apache.james.jspf.macro.MacroExpand

        // update currentDepth
        spfData.increaseCurrentDepth();     
       
        // throws a PermErrorException that we can pass through
        host = new MacroExpand(spfData, log).expandDomain(host);

        String prevRes = spfData.getCurrentResult();
        String prevHost = spfData.getCurrentDomain();
       
        try {
View Full Code Here

Examples of org.apache.james.jspf.macro.MacroExpand

            // update currentDepth
            spfData.increaseCurrentDepth();

            // throws a PermErrorException that we can pass through
            host = new MacroExpand(spfData, log).expandDomain(host);

            spfData.setCurrentDomain(host);

            try {
                spfChecker.checkSPF(spfData);
View Full Code Here

Examples of org.apache.james.jspf.macro.MacroExpand

        // If the currentResult is not fail we have no need to run all these
        // methods!
        if (spfData.getCurrentResult()== null || !spfData.getCurrentResult().equals(SPF1Constants.FAIL))
            return;

        host = new MacroExpand(spfData, log).expandDomain(host);

        try {
            try {
                exp = getTxtType(dnsService, host);
            } catch (TempErrorException e) {
                // Nothing todo here.. just return null
                return;
            }

            if ((exp != null) && (!exp.equals(""))) {
                spfData.setExplanation(new MacroExpand(spfData, log)
                        .expandExplanation(exp));
            }
        } catch (PermErrorException e) {
            // TODO add logging here!
            // Only catch the error and return null
View Full Code Here

Examples of org.apache.james.jspf.macro.MacroExpand

        spfData.increaseCurrentDepth();

        String host = expandHost(spfData);

        // throws a PermErrorException that we can pass through
        host = new MacroExpand(spfData, log).expandDomain(host);

        try {
            aRecords = dnsService.getRecords(host,DNSService.A);
        } catch (DNSService.TimeoutException e) {
            return false;
View Full Code Here

Examples of org.apache.james.jspf.macro.MacroExpand

        String host = getDomain();
        if (host == null) {
            host = spfData.getCurrentDomain();
        } else {
            // throws a PermErrorException that we cat pass through
            host = new MacroExpand(spfData, log).expandDomain(host);
        }
        return host;
    }
View Full Code Here

Examples of org.apache.james.jspf.macro.MacroExpand

                            explanation = SPF1Utils.DEFAULT_EXPLANATION;
                        } else {
                            explanation = defExplanation;
                        }
                        try {
                            spfData.setExplanation(new MacroExpand(spfData, log)
                                    .expandExplanation(SPF1Utils.DEFAULT_EXPLANATION));
                        } catch (PermErrorException e) {
                            // Should never happen !
                            log.debug("Invalid defaulfExplanation: " + explanation);
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.