On Tue, Jul 20, 2010 at 12:00 PM, Victor Saar <[email protected]> wrote:
> On Tue, Jul 20, 2010 at 11:47 AM, Bertrand Delacretaz <
> [email protected]> wrote:
>> ....how does the following scenario sound?
>>
>> @Reference
>> DetachedRRFactory f;
>>
>> @Reference
>> SlingServlet s;
>>
>> Map<String, String> parameters = ...
>> RRpair p = f.getRequestResponsePair("POST", "/foo", parameters);
>> s.processrequest(p.getRequest(), p.getResponse());
>>
>>
> This looks like an elegant way to me. I assume that any extension, selectors
> and suffix would be provided in the parameters?

Probably just in the path, i.e. make that /foo.someselector.html
instead of just /foo. The idea is to make that call similar to what
you'd do with curl, for example.

-Bertrand

Reply via email to