|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.smtp.core.fastfail.AbstractGreylistHandler
public abstract class AbstractGreylistHandler
Abstract base class which implement GreyListing.
| Constructor Summary | |
|---|---|
AbstractGreylistHandler()
|
|
| Method Summary | |
|---|---|
protected abstract void |
cleanupAutoWhiteListGreyList(long time)
Cleanup the autowhitelist |
protected abstract void |
cleanupGreyList(long time)
Delete old entries from the Greylist datarecord |
HookResult |
doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
Return the HookResult after run the hook |
protected abstract Iterator<String> |
getGreyListData(String ipAddress,
String sender,
String recip)
Get all necessary data for greylisting based on provided triplet |
protected abstract void |
insertTriplet(String ipAddress,
String sender,
String recip,
int count,
long createTime)
Insert new triplet in the store |
void |
setAutoWhiteListLifeTime(long autoWhiteListLifeTime)
|
void |
setTempBlockTime(long tempBlockTime)
|
void |
setUnseenLifeTime(long unseenLifeTime)
|
protected abstract void |
updateTriplet(String ipAddress,
String sender,
String recip,
int count,
long time)
Update the triplet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractGreylistHandler()
| Method Detail |
|---|
public void setUnseenLifeTime(long unseenLifeTime)
public void setAutoWhiteListLifeTime(long autoWhiteListLifeTime)
public void setTempBlockTime(long tempBlockTime)
protected abstract Iterator<String> getGreyListData(String ipAddress,
String sender,
String recip)
throws Exception
ipAddress - The ipAddress of the clientsender - The mailFromrecip - The rcptTo
Exception
protected abstract void insertTriplet(String ipAddress,
String sender,
String recip,
int count,
long createTime)
throws Exception
ipAddress - The ipAddress of the clientsender - The mailFromrecip - The rcptTocount - The countcreateTime - The createTime
SQLException
Exception
protected abstract void updateTriplet(String ipAddress,
String sender,
String recip,
int count,
long time)
throws Exception
ipAddress - The ipAddress of the clientsender - The mailFromrecip - The rcptTocount - The counttime - the current time in ms
Exception
protected abstract void cleanupAutoWhiteListGreyList(long time)
throws Exception
time - The time which must be reached before delete the records
Exception
protected abstract void cleanupGreyList(long time)
throws Exception
time - The time which must be reached before delete the records
Exception
public HookResult doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
RcptHook
doRcpt in interface RcptHooksession - the SMTPSessionsender - the sender MailAddressrcpt - the recipient MailAddress
RcptHook.doRcpt(org.apache.james.protocols.smtp.SMTPSession, org.apache.mailet.MailAddress, org.apache.mailet.MailAddress)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||