Andrew Sykes wrote:
Stefano,
Thanks for that.
A more advanced task could be to generalize the Command Pattern used by
the SMTPHandle so that we can use it for all ours telnet/command based
protocols like POP3 and possibly as a base for IMAP too.
The command patter is easy to adopt and it allow for more flexibility
extensibility and a cleaner approach to the service creation/deploy.
Stefano
On Mon, 2006-01-23 at 16:50 +0100, Stefano Bagnara wrote:
Andrew Sykes wrote:
Stefano,
This may seem like a silly question, but what is the "state map"? Can
you elaborate a bit please?
With the new CmdHandler architecture introduced in James 2.3.0 the state
of the session is stored in the SMTPSession object. The single commands
behaviour depends on the current session state and they alter the
session state. For flexibility the SMTPSession contains a state HashMap
that can be used by commands to store arbitrary key-values pair.
[...]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]