sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Schaefer <schaef...@me.com.INVALID>
Subject Re: Intra Sling Calls
Date Tue, 02 Jun 2020 17:06:02 GMT
Hi Dirk

First I do not like to use a “Mock” class for a in-production code. Second I cannot do
multiparts forms in the Mock classes (getParts(), getPart() is throwing an Unsupported Operation
Exception).

- Andy

> On Jun 2, 2020, at 12:14 AM, Dirk Rudolph <dirk.rudolph@netcentric.biz> wrote:
> 
> The mock implementations in o.a.s.servlet-helpers are actually quite
> complete for common use cases. What do you have in mind that might be
> missing?
> 
> Kind regards,
> Dirk
> 
> On Tue, 2 Jun 2020 at 08:58, Konrad Windszus <konrad_w@gmx.de> wrote:
> 
>> If you don’t have a request at hand it will be impossible to implement
>> fully. If you have a request just use regular request dispatching.
>> Konrad
>> 
>> 
>>> Am 02.06.2020 um 08:21 schrieb Carsten Ziegeler <cziegeler@apache.org>:
>>> 
>>> So you want to make an HTTP request from within Sling to itself?
>>> I wouldn't recommend doing this, but I see no problem of having this as
>> a new separate module, maybe starting in the whiteboard.
>>> 
>>> Regards
>>> Carsten
>>> 
>>>> Am 02.06.2020 um 06:10 schrieb Andreas Schaefer:
>>>> Hi
>>>> As of know - and place correct me if I am wrong - there is no way for a
>> service to call Sling internally as a request in a full fledged manner.
>>>> Even though one can call Sling internally through SlingRequestProcessor
>> usable Request and Response objects are only available as Mock objects and
>> therefore limited In their abilities.
>>>> So I am wondering if you guys would mind for me to build a service
>> providing the means to make internal Sling calls through the HTTP stack
>> with an official internal Sling Request / Response object that provides all
>> features applicable internally and removing most of the Unsupported
>> Operation Exceptions?
>>>> Cheers - Andy
>>> 
>>> --
>>> --
>>> Carsten Ziegeler
>>> Adobe Research Switzerland
>>> cziegeler@apache.org
>> 
>> --
> 
> Dirk Rudolph | Senior Software Engineer
> 
> Netcentric AG
> 
> M: +41 79 642 37 11
> D: +49 174 966 84 34
> 
> dirk.rudolph@netcentric.biz | www.netcentric.biz


Mime
View raw message