On Fri, 2008-06-13 at 08:14 +0200, Lilianne E. Blaze wrote: > Hello, > I need something that works more or less like a default servlet (serving > static resources, basic caching, etc), but container-neutral and with a > possibility to call it from a filter. I think your ResourceServlet can > be easily adapted to that role (it will probably need to be 'dumbed > down' in fact). As I understand it, ASF licence allows me to use it? > What I need exactly is to take ResourceServlet and the classes it needs, > wrap it in a subclass / glue code providing some sensible defaults, pack > it in a jar, then pack it all in a .war with some other ASF and LGPL > code and some of my own (commercial / closed source). I'm willing to > publish the glue code with ASF licence in case anyone needs it too. > > I am allowed to do it, right? Would that be ok with you? > > Alternatively, do you know of any project which would be more suitable?
I'm not sure which project you're referring to, ie which the ResourceServlet is in. But in any case, you are very welcome to use any ASF code in your own applications. The ASF license specifically allows that. Make sure you leave the licensing comments that are at the top of the file. If you do make some bugfixes or improvements then it is not mandatory to contribute them back but it would be appreciated. Note that the final definition of what is and is not allowed is the apache license itself. If in doubt, read that. You'll find more info here: http://apache.org/licenses/ But AFAIK the ASF has never sued anyone over use of its code, and it is extremely unlikely that it ever will happen. The license is designed to allow use of the code in almost any way, including within proprietary applications (unlike the GPL for example). You might also want to check out the weblets project: weblets.dev.java.net Regards, Simon
