Package org.apache.james.jspf.terms
Class Directive
java.lang.Object
org.apache.james.jspf.terms.Directive
- All Implemented Interfaces:
SPFChecker
A Directive is a mechanism with a resulting qualifier.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSPF
(SPFSession spfSession) Run the DirectiveReturn the Mechanism which should be runReturn the QualifiertoString()
-
Field Details
-
ATTRIBUTE_MECHANISM_RESULT
- See Also:
-
qualifier
-
-
Constructor Details
-
Directive
Construct Directive- Parameters:
qualifier
- The qualifier to use. Valid qualifier are: +, -, ~, ?mechanism
- The Mechanism- Throws:
PermErrorException
- Get thrown if a PermError should returned
-
-
Method Details
-
checkSPF
public DNSLookupContinuation checkSPF(SPFSession spfSession) throws PermErrorException, TempErrorException, NoneException, NeutralException Run the Directive- Specified by:
checkSPF
in interfaceSPFChecker
- Parameters:
spfSession
- The SPFSession to use- Returns:
- The qualifier which was returned
- Throws:
PermErrorException
- get thrown if a PermError should returnedTempErrorException
- get thrown if a TempError should returnedNoneException
- get thrown if a NoneException should returned;NeutralException
-
getMechanism
Return the Mechanism which should be run- Returns:
- the Mechanism
-
getQualifier
Return the Qualifier- Returns:
- the qualifier
-
toString
-