Re: Scriptable Filters

2008-01-05 Thread Lars Trieloff
Indeed, this looks good. On 29.12.2007, at 20:59, Felix Meschberger wrote: Hi all, Scriptable Filters may be implemented based on my recent "Everything is a Resource" proposal. See [1] Regards Felix [1] http://cwiki.apache.org/SLING/everything-is-a-resource.html#Everythingi

Re: Scriptable Filters

2007-12-29 Thread Felix Meschberger
Hi all, Scriptable Filters may be implemented based on my recent "Everything is a Resource" proposal. See [1] Regards Felix [1] http://cwiki.apache.org/SLING/everything-is-a-resource.html#EverythingisaResource-4.3Filters Am Freitag, den 21.12.2007, 14:49 +0100 schrieb Lars Trieloff:

Re: Scriptable Filters

2007-12-28 Thread Carsten Ziegeler
I think a servlet filter is more flexible than this proposed solution. In a servlet filter you can modify the request and response before calling the next component in the filter change, you can decide to call the next in the chain and you can clean up or do some interesting stuff when the next com

Re: Scriptable Filters

2007-12-21 Thread Felix Meschberger
Hi Lars, Am Freitag, den 21.12.2007, 16:26 +0100 schrieb Lars Trieloff: > A typical servlet filter has following structure: > > - do something with the request > - call doFilter(request, response); > - do something with the response I fear this does not work The request object has no setters

Re: Scriptable Filters

2007-12-21 Thread Lars Trieloff
A typical servlet filter has following structure: - do something with the request - call doFilter(request, response); - do something with the response In most of these filters only the request or the response is modified. With the separation of request.js and response.js I eliminate the nece

Re: Scriptable Filters

2007-12-21 Thread Felix Meschberger
Hi Lars, Sounds simple and usefull. Just one question: What is the difference betwen the Request filter and the Response filter ? And a clarification the script must/may wrap the request and response objects to inject new data, or do you think that only parameters would be "overwritten" ? Regar

Re: Scriptable Filters

2007-12-21 Thread Michael Marth
Lars, good suggestion IMO. re the resource filter scripts: If the filter scripts reside in a different location than render scripts anyway, why not apply the same naming schema as for render scripts? ( html.esp, POST.esp, etc) re the default: can we just call it "default.esp"? Michael -- Michae

Scriptable Filters

2007-12-21 Thread Lars Trieloff
Here is my proposal for scriptable filtering: == Goal == We want to allow users with limited knowledge and interest in OSGi, Maven and Java to create filters in a similar fashion to creating scripts for request handling. == Current Situation == Filters are OSGI components, implementing the