|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(Configuration)
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
Initializable.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.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.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 CommandHandler
CommandHandler.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 |