Re: Resource output capture/modification

2012-11-14 Thread Felix Meschberger
Hi,

Am 14.11.2012 um 02:16 schrieb David G.:

 Ian,
 
 Correct - I want to trap the output of a sling:include.

You might want to implement a component level filter and wrap the response 
object.

Regards
Felix

 If i have a resource that sling:includes 5 other resources, I want to be able 
 to hook in and have access to what each sling:include wrote to the 
 response, and modify it if needed. Conceptually I'm imagining something like 
 a Sling Filter at the Component level,  but on the exit of the inclusion, 
 rather than the entrance.
 
 And wrt to the Sling Rewriters - those are the Sling docs i was reading over 
 and looked through the Sling src for example implementations.  
 
 Ill take a look at the Cocoon docs as well - thanks for the links! 
 
 -- 
 David Gonzalez
 Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
 
 
 On Tuesday, November 13, 2012 at 6:40 PM, Ian Boston wrote:
 
 On 14 November 2012 09:35, David G. davidjgonza...@gmail.com 
 (mailto:davidjgonza...@gmail.com) wrote:
 Is there any mechanism in Sling that would let me inspect/modify the
 output a resource after it has been fully evaluated against its
 renderer? Similar to the sling rewriter pipeline but a hook that
 occurs after each resource include?
 
 
 
 If by output of a resource you mean the response object, then IIRC you
 can perform servlet request dispatch operations that will enable you
 to process the output of an internal request. There are some helper
 classes for wrapping requests. That will give you raw low level access
 to the rendered response from a resource. Just ask for pointers if
 that made no sense.
 
 
 Likewise, is there any other documentation on the Sling rewriter
 pipeline? Im not too familiar w all the SAX eventing and what
 could/should (use cases) happen in Generators, Transformers and
 Processors.
 
 
 
 Does this help (sorry if youve read it) ?
 http://sling.apache.org/site/output-rewriting-pipelines-orgapacheslingrewriter.html
 
 or is it the Cocoon terminology you are after ?
 (only for terminology)
 http://cocoon.apache.org/2.1/userdocs/generators.html
 http://cocoon.apache.org/2.1/userdocs/transformers.html
 
 
 Ian 
 



Re: Adding dependencies

2012-11-14 Thread Alexander Klimetschek
On 14.11.2012, at 03:56, Wayne Lund wxl...@yahoo.com wrote:

 Why would you say sling is more elegant?

It's more elegant because:
- addresses resources, not scripts
- no regexp hell
- with JCR, clearly defined resource space

Cheers,
Alex



Re: Multi-tenancy support in Sling - SLING-2656

2012-11-14 Thread Felix Meschberger
Hi,

Am 12.11.2012 um 11:48 schrieb Bertrand Delacretaz:
 
 My suggestion is then just to call this the Tenant API, and refrain
 from speaking of multi-tenancy to avoid inflated expectations. It's
 just an embryo of multi-tenancy.

+1

So, this is about the Tenant API and not about general multi-tenancy. Sorry for 
the confusion.

Regards
Felix

RE: Adding dependencies

2012-11-14 Thread Dan Klco
Sling is definitely more elegantly architected, but I have to admit the Spring 
3 MVC method of creating servlets and serializing/deserializing object from 
parameters/responses is extremely powerful.  It might be interesting to create 
a framework in Sling allow defining resource based servlets via annotating 
methods and add support serializing responses and loading parameters from the 
request.

-Dan

-Original Message-
From: Alexander Klimetschek [mailto:aklim...@adobe.com] 
Sent: Wednesday, November 14, 2012 6:39 AM
To: users@sling.apache.org
Subject: Re: Adding dependencies

On 14.11.2012, at 03:56, Wayne Lund wxl...@yahoo.com wrote:

 Why would you say sling is more elegant?

It's more elegant because:
- addresses resources, not scripts
- no regexp hell
- with JCR, clearly defined resource space

Cheers,
Alex



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2793 / Virus Database: 2629/5892 - Release Date: 11/13/12