|
||||||||||
| 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.AbstractJunkHandler
public abstract class AbstractJunkHandler
| Constructor Summary | |
|---|---|
AbstractJunkHandler()
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
check(SMTPSession session)
All checks must be done in this method |
void |
configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration)
|
protected void |
doProcessing(SMTPSession session)
Process the checking |
protected java.lang.String |
getAction()
Return the action |
abstract JunkHandlerData |
getJunkHandlerData(SMTPSession session)
Get the JunkHandlerData to work with |
protected JunkScore |
getJunkScore(SMTPSession session)
Return the JunkScore object. |
protected double |
getScore()
Return the configured score |
void |
setAction(java.lang.String action)
Set the Action which should be taken if the mail from has no valid domain. |
void |
setScore(double score)
Set the score which will get added to the JunkScore object if the action is junkScore andt the sender has no valid domain |
| 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 AbstractJunkHandler()
| 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 setAction(java.lang.String action)
action - the actionpublic void setScore(double score)
score - the scoreprotected double getScore()
protected java.lang.String getAction()
protected void doProcessing(SMTPSession session)
session - the SMTPSessionprotected abstract boolean check(SMTPSession session)
session - the SMTPSession
public abstract JunkHandlerData getJunkHandlerData(SMTPSession session)
session - the SMTPSession
protected JunkScore getJunkScore(SMTPSession session)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||