|
||||||||||
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.AbstractJunkHandler org.apache.james.smtpserver.core.filter.fastfail.MaxRcptHandler
public class MaxRcptHandler
Constructor Summary | |
---|---|
MaxRcptHandler()
|
Method Summary | |
---|---|
protected boolean |
check(SMTPSession session)
All checks must be done in this method |
void |
configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration)
|
java.util.Collection |
getImplCommands()
Return a Collection of implemented commands |
JunkHandlerData |
getJunkHandlerData(SMTPSession session)
Get the JunkHandlerData to work with |
void |
onCommand(SMTPSession session)
Handle the command |
void |
setMaxRcpt(int maxRcpt)
Set the max rcpt for wich should be accepted |
Methods inherited from class org.apache.james.smtpserver.core.filter.fastfail.AbstractJunkHandler |
---|
doProcessing, getAction, getJunkScore, getScore, setAction, setScore |
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 MaxRcptHandler()
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
configure
in class AbstractJunkHandler
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(Configuration)
public void setMaxRcpt(int maxRcpt)
maxRcpt
- The max rcpt countpublic void onCommand(SMTPSession session)
CommandHandler
onCommand
in interface CommandHandler
CommandHandler.onCommand(SMTPSession)
public java.util.Collection getImplCommands()
CommandHandler
getImplCommands
in interface CommandHandler
CommandHandler.getImplCommands()
protected boolean check(SMTPSession session)
AbstractJunkHandler
check
in class AbstractJunkHandler
session
- the SMTPSession
AbstractJunkHandler.check(org.apache.james.smtpserver.SMTPSession)
public JunkHandlerData getJunkHandlerData(SMTPSession session)
AbstractJunkHandler
getJunkHandlerData
in class AbstractJunkHandler
session
- the SMTPSession
AbstractJunkHandler.getJunkHandlerData(org.apache.james.smtpserver.SMTPSession)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |