|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spamarchive.Domain
public class Domain
Used to store information about the domain found in the earliest Received
header of the messages being parsed.
Constructor Summary | |
---|---|
Domain(java.lang.String str,
int spf,
int cnt)
Creates a new instance of Domain and initializes the member
variables to the arguments received. |
Method Summary | |
---|---|
void |
assignSPFExists(int value)
Sets the value of spfExists to value argument. |
int |
getCount()
Returns the value of count . |
java.lang.String |
getDomain()
Returns the name of this domain. |
int |
getSPFExists()
Returns the value of spfExists . |
void |
increaseCount()
Increments value of count by 1. |
void |
setDomain(java.lang.String str)
Sets the value of domain to the str argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Domain(java.lang.String str, int spf, int cnt)
Domain
and initializes the member
variables to the arguments received.
str
- the name of the domainspf
- whether or not there exists a SPF record in the domain's
DNS entry.cnt
- number of messages having this domain in their earliest
Received
header.Method Detail |
---|
public void setDomain(java.lang.String str)
domain
to the str
argument.
str
- the name that has to be assigned to this domain.public void assignSPFExists(int value)
spfExists
to value
argument.
value
- the value to be assigned to spfExists
.public void increaseCount()
count
by 1.
public java.lang.String getDomain()
public int getSPFExists()
spfExists
.
-3 to -6
if SPF existence test failed;0
if the domain doesn't have a SPF record in its DNS entry;1
if the domain has a SPF record in its DNS entry.public int getCount()
count
.
Received
header.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |