james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Knystautas <ser...@lokitech.com>
Subject Re: Matcher -> Mailet communication
Date Mon, 03 Jun 2002 13:39:20 GMT
 From the way other APIs are written, attributes imply support for 
serializable objects while properties implies just Strings.  That's why 
I suggested get/setAttribute.

This is also another reason to add this because you couldn't stick 
serializable objects in MimeMessage headers like you could properties.
Serge Knystautas
Loki Technologies - Unstoppable Websites

Noel J. Bergman wrote:
>>>I can't see how the matcher can pass info related to the match
>>>to a mailet, other than by adding headers to the MimeMessage.
>>The two (minor) changes I have on tap for the next version of the
>>mailet API are adding attributes to Mail objects
> :-) Thank you, Serge.  That's exactly what I had in mind.  I presume that
> this would be:
> 	void setAttribute(String, Object)
> 	Object getAttribute(String)
> or something similar?  The only coupling between Matchers and Mailets would
> be the name (and content) of the properties (I don't care if we use
> set/getAttribute or set/getProperty ... anyone else care?).
> 	--- Noel
> --
> To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>

View raw message