public interface SmtpListener
extends java.util.EventListener
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); } ... }
Modifier and Type | Method and Description |
---|---|
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
|
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
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved