org.apache.james.jspf.executor
Class SPFResult

java.lang.Object
  extended by org.apache.james.jspf.executor.SPFResult
Direct Known Subclasses:
FutureSPFResult

public class SPFResult
extends Object

This class is used to return the result of an SPF lookup.


Field Summary
protected  String explanation
           
protected static String HEADER_NAME
           
protected  String headerTextAsString
           
protected  String result
           
 
Constructor Summary
protected SPFResult()
           
  SPFResult(SPFSession spfSession)
          Construct SPFResult
 
Method Summary
 String getExplanation()
          Get the explanation string If no explanation exists return the empty string
 String getHeader()
          Get the full SPF-Header (headername and headertext)
 String getHeaderName()
          Get the SPF-Headername
 String getHeaderText()
          Get SPF-Headertext
 String getResult()
          Get the result string
protected  void setSPFSession(SPFSession spfSession)
          Initialize the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headerTextAsString

protected String headerTextAsString

HEADER_NAME

protected static final String HEADER_NAME
See Also:
Constant Field Values

result

protected String result

explanation

protected String explanation
Constructor Detail

SPFResult

protected SPFResult()

SPFResult

public SPFResult(SPFSession spfSession)
Construct SPFResult

Parameters:
spfSession - the SPFSession
Method Detail

setSPFSession

protected void setSPFSession(SPFSession spfSession)
Initialize the result.

Parameters:
spfSession -

getHeader

public String getHeader()
Get the full SPF-Header (headername and headertext)

Returns:
SPF-Header

getHeaderName

public String getHeaderName()
Get the SPF-Headername

Returns:
headername

getHeaderText

public String getHeaderText()
Get SPF-Headertext

Returns:
headertext

getResult

public String getResult()
Get the result string

Returns:
result
See Also:
SPF1Utils

getExplanation

public String getExplanation()
Get the explanation string If no explanation exists return the empty string

Returns:
explanation


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.