|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.smtp.hook.SimpleHook
public class SimpleHook
Simple Hook implementation which can be used as base class when writing simple Hook's
The SMTP-Server will just accept email with this Hook in place and discard it
| Constructor Summary | |
|---|---|
SimpleHook()
|
|
| Method Summary | |
|---|---|
HookResult |
doHelo(SMTPSession session,
String helo)
Return HookResult with HookReturnCode.DECLINED |
HookResult |
doMail(SMTPSession session,
org.apache.mailet.MailAddress sender)
Return HookResult with HookReturnCode.DECLINED |
HookResult |
doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
Return HookResult with HookReturnCode.DECLINED |
HookResult |
onMessage(SMTPSession session,
MailEnvelope mail)
Return HookResult with HookReturnCode.OK |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleHook()
| Method Detail |
|---|
public HookResult onMessage(SMTPSession session,
MailEnvelope mail)
HookResult with HookReturnCode.OK
onMessage in interface MessageHook
public HookResult doRcpt(SMTPSession session,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress rcpt)
HookResult with HookReturnCode.DECLINED
doRcpt in interface RcptHooksession - the SMTPSessionsender - the sender MailAddressrcpt - the recipient MailAddress
public HookResult doMail(SMTPSession session,
org.apache.mailet.MailAddress sender)
HookResult with HookReturnCode.DECLINED
doMail in interface MailHooksession - the SMTPSessionsender - the sender MailAddress
public HookResult doHelo(SMTPSession session,
String helo)
HookResult with HookReturnCode.DECLINED
doHelo in interface HeloHooksession - the SMTPSessionhelo - the helo name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||