OK. I guess we can copy & paste this detailed explanation into the Javadoc
:)

On Fri, Jul 30, 2010 at 1:06 PM, Dimuthu Gamage <dimu...@wso2.com> wrote:

> Hi,
> We need the MeteredServletRequest/Response to meter the bandwidth. It seems
> I could not use CarbonRequestWrapper because it was not in an OSGI
> component, and the request metering wrapper needed an OSGI service tracker,
> so I have to write a new wrapper within an OSGI component.
>
> The requirement for the metered servlet request was to get a metered input
> stream[1] and output stream. In order to get the input stream/output stream
> wrapped I had to override the HttpServletRequest.getInputStream() method.
>
> We anyway have to intercept the request stream to meter it, specially for
> stratos. And this has to be within carbon, since the metering data should be
> tenant-aware.
>
>  Anyway when there is no metering requirement, we should be able to bypass
> these wrapper (probably using carbon.xml entry).
>
> [1]
> https://svn.wso2.org/repos/wso2/trunk/carbon/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/transports/metering/MeteringInputStream.java
>
> Thanks
> Dimuthu
>
>
> On Fri, Jul 30, 2010 at 12:20 PM, Afkham Azeez <az...@wso2.com> wrote:
>
>> The Carbon level wrapping is used for the following reasons:
>>
>> 1. Control session state replication on other app servers
>> 2. Implement Java Security
>>
>> DimuthuG is the best person who can answer the metering wrapping.
>> Unfortunately, today is his last day at WSO2.
>>
>> Azeez
>>
>>
>> On Fri, Jul 30, 2010 at 10:49 AM, Ruwan Linton <ru...@wso2.com> wrote:
>>
>>> Why do we actually need this wrapping? I think first we need to review
>>> what we are trying to do with this wrapping. May be a code review...
>>>
>>> Thanks,
>>> Ruwan
>>>
>>> Afkham Azeez wrote:
>>> > I'm a bit concerned about the multiple layers that wrap the original
>>> > HTTP servlet request/response. We have the Equinox wrapper, then the
>>> > Carbon wrapper, and now metering wrapper. Is the metering wrapper
>>> > needed? Can't we use the existing Carbon wrapped request/responses?
>>> >
>>> > Azeez
>>> >
>>> > On Fri, Jul 30, 2010 at 10:26 AM, Afkham Azeez <az...@wso2.com
>>> > <mailto:az...@wso2.com>> wrote:
>>> >
>>> >     Why is the original request/reponse wrapped by these classes? Some
>>> >     JavaDocs explaining the usage of these classes would have helped.
>>> >
>>> >     Azeez
>>> >     --
>>> >     Afkham Azeez
>>> >     Senior Software Architect & Senior Manager; WSO2, Inc.;
>>> >     http://wso2.com, Lean . Enterprise . Middleware
>>> >     Member; Apache Software Foundation; http://www.apache.org/
>>> >     email: az...@wso2.com <mailto:az...@wso2.com> cell: +94 77 3320919
>>> >     blog: http://blog.afkham.org
>>> >     twitter: http://twitter.com/afkham_azeez
>>> >     linked-in: http://lk.linkedin.com/in/afkhamazeez
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Afkham Azeez
>>> > Senior Software Architect & Senior Manager; WSO2, Inc.;
>>> > http://wso2.com, Lean . Enterprise . Middleware
>>> > Member; Apache Software Foundation; http://www.apache.org/
>>> > email: az...@wso2.com <mailto:az...@wso2.com> cell: +94 77 3320919
>>> > blog: http://blog.afkham.org
>>> > twitter: http://twitter.com/afkham_azeez
>>> > linked-in: http://lk.linkedin.com/in/afkhamazeez
>>> >
>>> ------------------------------------------------------------------------
>>> >
>>> > _______________________________________________
>>> > Carbon-dev mailing list
>>> > Carbon-dev@wso2.org
>>> > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>> >
>>>
>>>
>>> --
>>> Ruwan Linton
>>> Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
>>> WSO2 Inc.; http://wso2.com
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> phone: +1 408 754 7388 ext 51789
>>> email: ru...@wso2.com; cell: +94 77 341 3097
>>> blog: http://blog.ruwan.org
>>> linkedin: http://www.linkedin.com/in/ruwanlinton
>>> tweet: http://twitter.com/ruwanlinton
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>>
>> --
>> Afkham Azeez
>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
>> Lean . Enterprise . Middleware
>> Member; Apache Software Foundation; http://www.apache.org/
>> email: az...@wso2.com cell: +94 77 3320919
>>
>> blog: http://blog.afkham.org
>> twitter: http://twitter.com/afkham_azeez
>> linked-in: http://lk.linkedin.com/in/afkhamazeez
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Afkham Azeez
Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
Lean . Enterprise . Middleware
Member; Apache Software Foundation; http://www.apache.org/
email: az...@wso2.com cell: +94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to