|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.jspf.policies.local.FallbackPolicy
public class FallbackPolicy
Class to support Fallback feature
| Constructor Summary | |
|---|---|
FallbackPolicy(Logger log,
SPFRecordParser parser)
|
|
| Method Summary | |
|---|---|
void |
addEntry(String rawHost,
String rawSpfRecord)
Add a entry. |
void |
clearEntrys()
Clear all entries |
protected SPF1Record |
getMySPFRecord(String host)
Return the SPF1Record for the given host |
SPF1Record |
getSPFRecord(String currentDomain,
SPF1Record res)
Filter or replace a record for the given domain |
void |
removeEntry(String host)
Remove entry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FallbackPolicy(Logger log,
SPFRecordParser parser)
| Method Detail |
|---|
public void addEntry(String rawHost,
String rawSpfRecord)
throws IllegalArgumentException
rawHost - the host or ipaddress for which the entry should be added.rawSpfRecord - the spfRecord to add
IllegalArgumentException - get thrown on invalid spfRecordpublic void clearEntrys()
public void removeEntry(String host)
host - The host
public SPF1Record getSPFRecord(String currentDomain,
SPF1Record res)
throws PermErrorException,
TempErrorException,
NoneException,
NeutralException
PolicyPostFilter
getSPFRecord in interface PolicyPostFiltercurrentDomain - the domain to retrieve the SPFRecord forres - the previous record
PermErrorException - exception
TempErrorException - exception
NoneException - exception
NeutralException - exceptionPolicyPostFilter.getSPFRecord(java.lang.String, org.apache.james.jspf.core.SPF1Record)protected SPF1Record getMySPFRecord(String host)
host - the hostname or ipaddress
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||