ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: [AXIOM] Retrieve message lenght
Date Fri, 13 May 2011 19:07:56 GMT
You could wrap the two streams using
CountingInputStream/CountingOutputStream from commons-io.

Andreas

On Wed, May 11, 2011 at 11:24, Lorenzo Nardi <nardi@link.it> wrote:
> Hi all,
>
> hi have to retrieve incoming and outgoing axiom (doom impl) messages
> lenght without building them.
>
> I'm in a http servlet, but transfer encoding is chunked, so can't get
> any lenght info from the transport layer. The message is modified by
> servlet's business logic, so the incoming message's size will be
> different from outgoing one.
>
> The messages lenght is needed at the end of business logic, after the
> serializeAndConsume of the message. I should keep memory of the bytes
> readed from the request's InputStream and of the byte produced by the
> serializeAndConsume of the response.
>
> Any suggestion how to do this?
>
> Thx,
> Lorenzo
>
>

Mime
View raw message