| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DEPTH
The maximum mechanismn which are allowed to use
|
| Constructor and Description |
|---|
SPFSession(String mailFrom,
String heloDomain,
String clientIP)
Build the SPFSession from the given parameters
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String key)
Retrieve a stored attribute
|
String |
getClientDomain()
Get clientDomain (p)
|
String |
getCurrentDomain()
Get current-domain (d)
|
String |
getCurrentResult()
Get the current result
|
String |
getCurrentResultExpanded() |
String |
getCurrentSenderPart()
Get current-senderpart (l)
|
String |
getExplanation()
Get the explanation
|
String |
getHostName()
Get sender-domain (h)
|
String |
getInAddress()
Get inAddress (v)
|
String |
getIpAddress()
Get the ipAddress which was used to connect
|
String |
getMacroIpAddress()
Get sending-host (i)
|
String |
getMailFrom()
Get responsible-sender (s)
|
String |
getReadableIP()
Get readableIP (c)
|
String |
getReceivingDomain()
Get receivingDomain (r)
|
String |
getSenderDomain()
Get senderDomain (o)
|
long |
getTimeStamp()
Get timeStamp (t)
|
boolean |
ignoreExplanation()
Return true if the explanation should be ignored
|
void |
increaseCurrentDepth()
Increase the current depth:
if we reach maximum calls we must throw a PermErrorException.
|
SPFChecker |
popChecker()
Remove the SPFChecker on the top and return it.
|
void |
pushChecker(SPFChecker checker)
Add the given SPFChecker on top of the stack
|
Object |
removeAttribute(String key)
Remove the attribute stored under the given key
|
void |
setAttribute(String key,
Object value)
Sets a new attribute in the session
|
void |
setClientDomain(String clientDomain)
Sets the calculated clientDomain
|
void |
setCurrentDomain(String domain)
Set the currentDomain
|
void |
setCurrentResult(String result)
Set the current result
|
void |
setCurrentResultExpanded(String result) |
void |
setExplanation(String explanation)
Set the explanation which will returned when a fail match
|
void |
setIgnoreExplanation(boolean ignoreExplanation)
Get set to true if the explanation should be ignored
|
void |
setReceivingDomain(String receivingDomain)
Sets the new receiving domain
|
public static final int MAX_DEPTH
public String getCurrentSenderPart()
MacroDatagetCurrentSenderPart in interface MacroDataMacroData.getCurrentSenderPart()public String getMailFrom()
MacroDatagetMailFrom in interface MacroDataMacroData.getMailFrom()public String getHostName()
MacroDatagetHostName in interface MacroDataMacroData.getHostName()public String getCurrentDomain()
MacroDatagetCurrentDomain in interface MacroDataMacroData.getCurrentDomain()public String getInAddress()
MacroDatagetInAddress in interface MacroDataMacroData.getInAddress()public String getClientDomain()
MacroDatagetClientDomain in interface MacroDataMacroData.getClientDomain()public void setClientDomain(String clientDomain)
clientDomain - the new clientDomainpublic String getSenderDomain()
MacroDatagetSenderDomain in interface MacroDataMacroData.getSenderDomain()public String getIpAddress()
public String getMacroIpAddress()
MacroDatagetMacroIpAddress in interface MacroDataMacroData.getMacroIpAddress()public long getTimeStamp()
MacroDatagetTimeStamp in interface MacroDataMacroData.getTimeStamp()public String getReadableIP()
MacroDatagetReadableIP in interface MacroDataMacroData.getReadableIP()public String getReceivingDomain()
MacroDatagetReceivingDomain in interface MacroDataMacroData.getReceivingDomain()public void setReceivingDomain(String receivingDomain)
receivingDomain - the new receiving domainpublic void increaseCurrentDepth()
throws PermErrorException
PermErrorExceptionpublic void setCurrentDomain(String domain)
domain - The current used domainpublic void setExplanation(String explanation)
explanation - This String is set as explanationpublic String getExplanation()
public void setCurrentResult(String result)
result - resultpublic String getCurrentResult()
public void setIgnoreExplanation(boolean ignoreExplanation)
ignoreExplanation - true or falsepublic boolean ignoreExplanation()
public Object getAttribute(String key)
key - the attribute keypublic void setAttribute(String key, Object value)
key - attribute keyvalue - the value for this attributepublic Object removeAttribute(String key)
key - the key of the attributepublic void pushChecker(SPFChecker checker)
checker - public SPFChecker popChecker()
public void setCurrentResultExpanded(String result)
result - public String getCurrentResultExpanded()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.