Thanks Justin and Bertrand for reviewing the approach!

>That's where the proposed POST pipeline would help

Okie. Now I appreciate the requirement. Would keep a watch on that
Chetan Mehrotra


On Tue, Mar 25, 2014 at 5:52 PM, Bertrand Delacretaz
<bdelacre...@apache.org> wrote:
> Hi Chetan,
>
> On Mon, Mar 24, 2014 at 12:19 PM, Chetan Mehrotra
> <chetan.mehro...@gmail.com> wrote:
>> ...For now I am dong this by
>> 1. Defining a custom operation 'my_modify'
>> 2. Implement a custom org.apache.sling.servlets.post.PostOperation
>> 3. Internall in custom PostOperation [2] I do my pre processing and then
>>    use a Service reference of default ModifyOperation
>>    (sling.post.operation=modify) and delegate to that
>> 4. The client would now use ':my_operation' as part of POST form data...
>
> This looks good to me, I don't think you can do better to implement
> pre-processing with the current POST servlet. That's where the
> proposed POST pipeline would help, but I don't think anyone is working
> on that right now.
>
> -Bertrand

Reply via email to