Package org.apache.james.jspf.exceptions

Examples of org.apache.james.jspf.exceptions.TempErrorException


                throw new PermErrorException("More then one TXT-Record for explanation");
            } else {
                return (String) records.get(0);
            }
        } catch (DNSService.TimeoutException e) {
            throw new TempErrorException("Timeout querying dns server");
        }
    }
View Full Code Here


                }
            }
           
            return false;
        } catch (DNSService.TimeoutException e) {
            throw new TempErrorException("Timeout querying the dns server");
        }

    }
View Full Code Here

                }
            }
           
            return mxR != null && mxR.size() > 0 ? mxR : null;
        } catch (DNSService.TimeoutException e) {
            throw new TempErrorException("Timeout querying the dns server");
        }
    }
View Full Code Here

            listAAAAData.add(ipTest);
        } else {
            try {
                listAAAAData = dns.getRecords(strServer, DNSService.AAAA);
            } catch (DNSService.TimeoutException e) {
                throw new TempErrorException("Timeout querying dns server");
            }
        }
        return listAAAAData;
    }
View Full Code Here

            listAData.add(strServer);
        } else {
            try {
                listAData = dns.getRecords(strServer, DNSService.A);
            } catch (DNSService.TimeoutException e) {
                throw new TempErrorException("Timeout querying dns server");
            }
        }
        return listAData;
    }
View Full Code Here

            } catch (NeutralException e) {
                throw new PermErrorException("included checkSPF returned NeutralException");
            }
           
            if (spfData.getCurrentResult() == null) {
                throw new TempErrorException("included checkSPF returned null");
            } else if (spfData.getCurrentResult().equals(SPF1Constants.PASS)) {
                return true;
            } else if (spfData.getCurrentResult().equals(SPF1Constants.FAIL) || spfData.getCurrentResult().equals(SPF1Constants.SOFTFAIL) || spfData.getCurrentResult().equals(SPF1Constants.NEUTRAL)) {
                return false;
            } else {
                throw new TempErrorException("included checkSPF returned an Illegal result");
            }
        } finally {
            // Reset the ignore
            spfData.setIgnoreExplanation(false);
            spfData.setCurrentDomain(prevHost);
View Full Code Here

                return extractSPFRecord(spfR);
            } else {
                return null;
            }
        } catch (DNSService.TimeoutException e) {
            throw new TempErrorException("Timeout querying dns");
        }
    }
View Full Code Here

                }
            } else {
                return null;
            }
        } catch (DNSService.TimeoutException e) {
            throw new TempErrorException("Timeout querying dns");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.james.jspf.exceptions.TempErrorException

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.