Hi Unico, > I was thinking that we need a common way to map mime-types in Avalon > and that sourceresolve package is the place to put it. I have two use > cases that raise the need for such a utility both related to > sourceresolve: one is FTPSource where I need to determine what FTP > transfer mode to use (ascii or binary) and the other is a XML > database backed Source that stores both DOM objects and Blob objects. > Depending on whether the location string identifies one or the other > I want to the SourceFactory to return an XMLIzable Source or a plain > one. > > Now in Cocoon there exists a utility class MIMEUtils that loads a > mapping file for cases that the Cocoon Context object is not in the > know about such things. I'd like to have a more general solution to > this problem, and one that resides in the avalon namespace. The fact > that systems have existing ways of providing such a service (Servlet > API provides ServletContext.getMimeType() method and web.xml markup > for declaring these mappings) suggests to me a service role instead > of a static utility class. [snip]
Seems like http://nagoya.apache.org/wiki/apachewiki.cgi?AvalonFortressFAQ/ExtendingTheFortressConfiguration You'll find a lot of these implementations googling for Avalon and MimeType. My concern would be the dependency on J2EE classes. Regards, J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
