Class DefaultExplanationPolicy
java.lang.Object
org.apache.james.jspf.policies.local.DefaultExplanationPolicy
- All Implemented Interfaces:
PolicyPostFilter
Policy to add a default explanation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSPFRecord(String currentDomain, SPF1Record spfRecord) Filter or replace a record for the given domain
-
Constructor Details
-
DefaultExplanationPolicy
- Parameters:
explanation- the default explanationmacroExpand- the MacroExpand service
-
-
Method Details
-
getSPFRecord
public SPF1Record getSPFRecord(String currentDomain, SPF1Record spfRecord) throws PermErrorException, TempErrorException, NoneException, NeutralException Description copied from interface:PolicyPostFilterFilter or replace a record for the given domain- Specified by:
getSPFRecordin interfacePolicyPostFilter- Parameters:
currentDomain- the domain to retrieve the SPFRecord forspfRecord- the previous record- Returns:
- the SPFRecord found
- Throws:
PermErrorException- exceptionTempErrorException- exceptionNoneException- exceptionNeutralException- exception- See Also:
-