cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: StreamGenerator depends on Servlets!!! (input pipelines discussion in concrete)
Date Thu, 19 Dec 2002 13:40:42 GMT

Vadim Gritsenko wrote:
> Nicola Ken Barozzi wrote:
> 
>>
>> We have StreamGenerator. Which is in fact tied to Servlets! 
> 
> What do you think - is it possible to eliminate StreamGenerator by 
> adding some functionality to the RequestFactory?

An InputStreamSource would be nice, so that any Generator can act on it.

  src="inputstream://"

>> This is incredible, if I want to get a stream from a request I have to 
>> have Servlets!
>>
>> We have a bunch of methods on the request, is there a reason that we 
>> cannot get the inputstream? I don't see the real need of having it 
>> this way, does anyone know if there was a reason for it? 
> 
> Is there any justification for getInputStream() for non-servlet 
> environment? 

Simple example: web services. the request contains the data that I must 
process.

>If no, I think it's better to try to encapsulate 
> servlet-specific logic into the factory.
> 
> Vadim
> 
> 
>> BTW, this has in fact come out during the input pipelines discussion, 
>> from a conceptual POV. I wasn't sure, so I dealt in the code and this 
>> is what I found...


-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message