Hi Juerg,

Juerg Meier schrieb:
> Hi,
> 
> I'd like to know what's the recommended way to intercept incoming POST
> requests in sling *before* they get written to the JCR. 
> 
> JCR itself supports observation, but that triggers only after the data
> has been written to the repo, so that's not quite what I'm looking for.

Carsten Ziegeler once implemtented a post processing feature using a
SlingPostProcessor interface [1].

These services are called after a SlingPostOperation has completed but
before the changes in the repository are saved by Session.save(). See
AbstractSlingOperation.run [2].

Hope this helps.

Regards
Felix

[1]
http://svn.apache.org/repos/asf/incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/SlingPostProcessor.java
[2]
http://svn.apache.org/repos/asf/incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java

Reply via email to