|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.smtpserver.core.filter.fastfail.GreylistHandler
public class GreylistHandler
GreylistHandler which can be used to activate Greylisting
| Constructor Summary | |
|---|---|
GreylistHandler()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration)
|
java.util.Collection |
getImplCommands()
Return a Collection of implemented commands |
void |
initialize()
|
void |
initSqlQueries(java.sql.Connection conn,
java.lang.String sqlFileUrl)
Initializes the sql query environment from the SqlResources file. |
void |
onCommand(SMTPSession session)
Handle the command |
void |
service(org.apache.avalon.framework.service.ServiceManager serviceMan)
|
void |
setAutoWhiteListLifeTime(java.lang.String autoWhiteListLifeTime)
Setup the autowhitelist lifetime for which we should whitelist a triplet. |
void |
setDataSource(org.apache.avalon.excalibur.datasource.DataSourceComponent datasource)
Set the datasource |
void |
setDataSources(org.apache.avalon.cornerstone.services.datasources.DataSourceSelector datasources)
Set the datasources |
void |
setDnsServer(DNSService dnsServer)
Set the DNSService |
void |
setRepositoryPath(java.lang.String repositoryPath)
Set the repositoryPath to use |
void |
setSqlFileUrl(java.lang.String sqlFileUrl)
Set the sqlFileUrl to use for getting the sqlRessource.xml file |
void |
setTempBlockTime(java.lang.String tempBlockTime)
Setup the temporary blocking time |
void |
setUnseenLifeTime(java.lang.String unseenLifeTime)
Set up the liftime of only once seen triplet. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GreylistHandler()
| Method Detail |
|---|
public void configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(Configuration)
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.ExceptionInitializable.initialize()
public void service(org.apache.avalon.framework.service.ServiceManager serviceMan)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)public void setDnsServer(DNSService dnsServer)
dnsServer - The DNSServicepublic void setSqlFileUrl(java.lang.String sqlFileUrl)
sqlFileUrl - The fileUrlpublic void setRepositoryPath(java.lang.String repositoryPath)
repositoryPath - The repositoryPathpublic void setDataSources(org.apache.avalon.cornerstone.services.datasources.DataSourceSelector datasources)
datasources - The datasourcespublic void setDataSource(org.apache.avalon.excalibur.datasource.DataSourceComponent datasource)
datasource - the datasourcepublic void setTempBlockTime(java.lang.String tempBlockTime)
tempBlockTime - The temporary blocking timepublic void setAutoWhiteListLifeTime(java.lang.String autoWhiteListLifeTime)
autoWhiteListLifeTime - The lifeTimepublic void setUnseenLifeTime(java.lang.String unseenLifeTime)
unseenLifeTime - The lifetimepublic void onCommand(SMTPSession session)
CommandHandler
onCommand in interface CommandHandlerCommandHandler.onCommand(SMTPSession)
public void initSqlQueries(java.sql.Connection conn,
java.lang.String sqlFileUrl)
throws java.lang.Exception
conn - The connection for accessing the databasesqlFileUrl - The url which we use to get the sql file
java.lang.Exception - If any error occurspublic java.util.Collection getImplCommands()
CommandHandler
getImplCommands in interface CommandHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||