Package org.apache.james.jspf.executor
Class FutureSPFResult
java.lang.Object
org.apache.james.jspf.executor.SPFResult
org.apache.james.jspf.executor.FutureSPFResult
A Blocking version of SPFResult which block until the SPFResult is fully set
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Listener which will get notified once aisReady()
returnstrue
. -
Field Summary
Fields inherited from class org.apache.james.jspf.executor.SPFResult
explanation, HEADER_NAME, headerTextAsString, result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Get the explanation string If no explanation exists return the empty stringGet the full SPF-Header (headername and headertext)Get the SPF-HeadernameGet SPF-HeadertextGet the result stringboolean
isReady()
Return true if the result was fully buildedvoid
void
setSPFResult
(SPFSession session) Set SPFResult using the given SPFsessionMethods inherited from class org.apache.james.jspf.executor.SPFResult
setSPFSession
-
Constructor Details
-
FutureSPFResult
public FutureSPFResult()
-
-
Method Details
-
setSPFResult
Set SPFResult using the given SPFsession- Parameters:
session
-
-
getExplanation
Description copied from class:SPFResult
Get the explanation string If no explanation exists return the empty string- Overrides:
getExplanation
in classSPFResult
- Returns:
- explanation
- See Also:
-
getHeader
Description copied from class:SPFResult
Get the full SPF-Header (headername and headertext) -
getHeaderName
Description copied from class:SPFResult
Get the SPF-Headername- Overrides:
getHeaderName
in classSPFResult
- Returns:
- headername
- See Also:
-
getHeaderText
Description copied from class:SPFResult
Get SPF-Headertext- Overrides:
getHeaderText
in classSPFResult
- Returns:
- headertext
- See Also:
-
getResult
Description copied from class:SPFResult
Get the result string -
isReady
public boolean isReady()Return true if the result was fully builded- Returns:
- true or false
-
addListener
- Parameters:
listener
-
-
removeListener
- Parameters:
listener
-
-