org.apache.james.jspf.terms
Class PTRMechanism
java.lang.Object
org.apache.james.jspf.terms.GenericMechanism
org.apache.james.jspf.terms.PTRMechanism
- All Implemented Interfaces:
- DNSServiceEnabled, LogEnabled, MacroExpandEnabled, SPFChecker, SPFCheckerDNSResponseListener, ConfigurationEnabled, Mechanism
public class PTRMechanism
- extends GenericMechanism
- implements DNSServiceEnabled, SPFCheckerDNSResponseListener
This class represent the ptr mechanism
Field Summary |
static java.lang.String |
REGEX
ABNF: PTR = "ptr" [ ":" domain-spec ] |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REGEX
public static final java.lang.String REGEX
- ABNF: PTR = "ptr" [ ":" domain-spec ]
- See Also:
- Constant Field Values
PTRMechanism
public PTRMechanism()
checkSPF
public DNSLookupContinuation checkSPF(SPFSession spfData)
throws PermErrorException,
TempErrorException,
NeutralException,
NoneException
- Description copied from interface:
SPFChecker
- Run check for SPF with the given values.
- Specified by:
checkSPF
in interface SPFChecker
- Parameters:
spfData
- The SPF1Data which should be used to run the check
- Throws:
PermErrorException
- Get thrown if an error was detected
TempErrorException
- Get thrown if a DNS problem was detected
NeutralException
- Get thrown if the result should be neutral
NoneException
- Get thrown if no Record was found- See Also:
SPFChecker.checkSPF(org.apache.james.jspf.core.SPFSession)
enableDNSService
public void enableDNSService(DNSService service)
- Description copied from interface:
DNSServiceEnabled
- Provide component with a DNSService.
- Specified by:
enableDNSService
in interface DNSServiceEnabled
- Parameters:
service
- the dns service. Must not be null
.- See Also:
DNSServiceEnabled.enableDNSService(org.apache.james.jspf.core.DNSService)
onDNSResponse
public DNSLookupContinuation onDNSResponse(DNSResponse response,
SPFSession spfSession)
throws PermErrorException,
TempErrorException,
NoneException,
NeutralException
- Description copied from interface:
SPFCheckerDNSResponseListener
- Continue the check for SPF with the given values and the given DNSResponse
- Specified by:
onDNSResponse
in interface SPFCheckerDNSResponseListener
- Parameters:
response
- The DNSResponse which should be used to run the checkspfSession
- The SPFSession which should be used to run the check
- Throws:
PermErrorException
- Get thrown if an error was detected
TempErrorException
- Get thrown if a DNS problem was detected
NoneException
- Get thrown if no Record was found
NeutralException
- Get thrown if the result should be neutral- See Also:
SPFCheckerDNSResponseListener.onDNSResponse(org.apache.james.jspf.core.DNSResponse, org.apache.james.jspf.core.SPFSession)
Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.