Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Jeroen Reijn
Hi Lars, I've been working with Wilfred on that project, but I'm not really sure if I was the guy that wrote the component, which he talks about. However I have written something similar about 2 years ago. The way I implemented it was by creating a reader. This reader then reads the js van

Restricting access by IP address

2009-09-09 Thread Peter Flynn
I have developed an RSS feed summarising posts to an internal mailing list, but I need to restrict access to it by IP address so that it is usable only internally to the organisation. I can't see any way to do this using the authentication framework. Are there other ways to implement IP address

Re: Restricting access by IP address

2009-09-09 Thread Jeroen Reijn
Hi Peter, have you also considered doing this with a webserver in front of you cocoon application? Regards, Jeroen Peter Flynn wrote: I have developed an RSS feed summarising posts to an internal mailing list, but I need to restrict access to it by IP address so that it is usable only

Re: Restricting access by IP address

2009-09-09 Thread Peter Flynn
Jeroen Reijn wrote: Hi Peter, have you also considered doing this with a webserver in front of your cocoon application? Yes, we currently front Tomcat with Apache httpd as a virtual host, but it's at the top level, eg VirtualHost *:80 ServerAdmin pfl...@ucc.ie ProxyPreserveHost On

Re: Restricting access by IP address

2009-09-09 Thread Jeroen Reijn
Hi Peter, i'm not really a sysadmin, so I'm no expert on Apache configurations, but can't you use the Location directive to handle this? http://httpd.apache.org/docs/2.0/mod/core.html#location Otherwise if you would want to solve it in Cocoon, I guess a combination of input modules and a

Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Lars Huttar
Kamal, Thanks for this reply. Since writing my original post, I tried subclassing ResourceReader to create MinifyingReader, but I just don't have the Java Cocoon knowledge to make it work. Also it seemed like YUI compressor is designed mainly to be command-line driven rather than driven by a Java

Re: Proposal - JS Reader

2009-09-09 Thread Lars Huttar
This is a reply to an old thread that I just learned about: On Wed, 13 Aug 2008 09:42:42 -0700 Mark Lundquist wrote: I guess a JS reader could be helpful for applications where all resources are served directly by raw Cocoon, i.e. if any compression is to be done then Cocoon has to do it. But

Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Lars Huttar
Jeroen, Dank u wel for looking into this. I look forward to whatever code examples you can find. Re: compressing at build time, please see my reply to Kamal. Regards, Lars On 9/9/2009 2:33 AM, Jeroen Reijn wrote: Hi Lars, I've been working with Wilfred on that project, but I'm not really

Re: using Cocoon for on-the-fly minification?

2009-09-09 Thread Jeroen Reijn
Graag gedaan! :-) I'll see if I can write a nice JSMin based reader on the way home by train today. It should not be that hard to implement. Regards, Jeroen Lars Huttar wrote: Jeroen, Dank u wel for looking into this. I look forward to whatever code examples you can find. Re: compressing at