|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.jspf.terms.Directive
public class Directive
A Directive is a mechanism with a resulting qualifier.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_MECHANISM_RESULT
|
protected java.lang.String |
qualifier
|
Constructor Summary | |
---|---|
Directive(java.lang.String qualifier,
Mechanism mechanism,
Logger logger)
Construct Directive |
Method Summary | |
---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfSession)
Run the Directive |
Mechanism |
getMechanism()
Return the Mechanism which should be run |
java.lang.String |
getQualifier()
Return the Qualifier |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_MECHANISM_RESULT
protected java.lang.String qualifier
Constructor Detail |
---|
public Directive(java.lang.String qualifier, Mechanism mechanism, Logger logger) throws PermErrorException
qualifier
- The qualifier to use. Valid qualifier are: +, -, ~, ?mechanism
- The Mechanism
PermErrorException
- Get thrown if a PermError should returnedMethod Detail |
---|
public DNSLookupContinuation checkSPF(SPFSession spfSession) throws PermErrorException, TempErrorException, NoneException, NeutralException
checkSPF
in interface SPFChecker
spfSession
- The SPFSession to use
PermErrorException
- get thrown if a PermError should returned
TempErrorException
- get thrown if a TempError should returned
NoneException
- get thrown if a NoneException should returned;
NeutralException
public Mechanism getMechanism()
public java.lang.String getQualifier()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |