|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.subethamail.smtp.server.AbstractMessageHandler
public abstract class AbstractMessageHandler
A simple base class to make implementing message handlers easier. It also makes modification of the interface class easier on users.
| Constructor Summary | |
|---|---|
AbstractMessageHandler()
|
|
| Method Summary | |
|---|---|
void |
from(java.lang.String from)
Called first, after the MAIL FROM during a SMTP exchange. |
void |
recipient(java.lang.String recipient)
Called once for every RCPT TO during a SMTP exchange. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.subethamail.smtp.MessageHandler |
|---|
data |
| Methods inherited from interface org.subethamail.smtp.AuthenticationHandler |
|---|
auth, getAuthenticationMechanisms, resetState |
| Constructor Detail |
|---|
public AbstractMessageHandler()
| Method Detail |
|---|
public void from(java.lang.String from)
throws RejectException
MessageHandler
from in interface MessageHandlerfrom - is the sender as specified by the client. It will
be a rfc822-compliant email address, already validated by
the server.
RejectException - if the sender should be denied.
public void recipient(java.lang.String recipient)
throws RejectException
MessageHandler
recipient in interface MessageHandlerrecipient - is a rfc822-compliant email address,
validated by the server.
RejectException - if the recipient should be denied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||