public class RFC4408SPF1Parser extends Object implements SPFRecordParser
SPF1Record
Constructor and Description |
---|
RFC4408SPF1Parser(Logger logger,
TermsFactory termsFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SPF1Record |
parse(String spfRecord)
This Method parse the given spf record and checks for syntax
parse can be called by multiple concurrent threads.
|
public RFC4408SPF1Parser(Logger logger, TermsFactory termsFactory)
logger
- the logger to usetermsFactory
- the TermsFactory implementationpublic SPF1Record parse(String spfRecord) throws PermErrorException, NoneException, NeutralException
SPFRecordParser
parse
in interface SPFRecordParser
spfRecord
- The String which represent the spf record in dnsPermErrorException
- Get thrown if an syntax error was detectedNoneException
- Get thrown if no spf record could be foundNeutralException
- Get thrown if an empty spf record was foundSPFRecordParser.parse(java.lang.String)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.