|
||||||||||
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(java.lang.String rawHost,
java.lang.String rawSpfRecord)
Add a entry. |
void |
clearEntrys()
Clear all entries |
protected SPF1Record |
getMySPFRecord(java.lang.String host)
Return the SPF1Record for the given host |
SPF1Record |
getSPFRecord(java.lang.String currentDomain,
SPF1Record res)
Filter or replace a record for the given domain |
void |
removeEntry(java.lang.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(java.lang.String rawHost, java.lang.String rawSpfRecord) throws java.lang.IllegalArgumentException
rawHost
- the host or ipaddress for which the entry should be added.rawSpfRecord
- the spfRecord to add
java.lang.IllegalArgumentException
- get thrown on invalid spfRecordpublic void clearEntrys()
public void removeEntry(java.lang.String host)
host
- The hostpublic SPF1Record getSPFRecord(java.lang.String currentDomain, SPF1Record res) throws PermErrorException, TempErrorException, NoneException, NeutralException
PolicyPostFilter
getSPFRecord
in interface PolicyPostFilter
currentDomain
- 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(java.lang.String host)
host
- the hostname or ipaddress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |