|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SmtpListener
Implements methods for capturing events sourced from Smtp class. Typicaly
your application will implement this interface to capture the following
events :
SmtpConnectedEvent
SmtpDisconnectedEvent
SmtpCommandEvent
SmtpCommandEvent
In addition to implementing this interface your application should register
itself as an EventListener which may look somewhat like this:
public class Application ... implements SmtpListener { ... public ... initMethod(...) { Smtp smtp = new Smtp(); smtp.addSmtpListener(this); } ... }
Method Summary | |
---|---|
void |
commandSent(SmtpCommandEvent event)
Invoked when command is sent to the SMTP server |
void |
connected(SmtpConnectedEvent event)
Invoked when connection to SMTP server is established. |
void |
disconnected(SmtpDisconnectedEvent event)
Invoked when connection to SMTP server is released. |
void |
responseReceived(SmtpResponseEvent event)
Invoked when a response is received from SMTP server |
Method Detail |
---|
void connected(SmtpConnectedEvent event)
event
- a SmtpConnectedEvent
SmtpConnectedEvent
void disconnected(SmtpDisconnectedEvent event)
event
- a SmtpDisconnectedEvent
SmtpDisconnectedEvent
void commandSent(SmtpCommandEvent event)
event
- a SmtpCommandEvent
SmtpCommandEvent
void responseReceived(SmtpResponseEvent event)
event
- a SmtpResponseEvent
SmtpResponseEvent
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |