cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <>
Subject Re: content length for http requests
Date Wed, 02 Apr 2008 16:37:40 GMT

In JAX-RS, MessageBodyWriters have a method called getSize(), many writers return -1 (unknown
sizes), but in some cases
(for ex for String or byte[]) a valid size value is returned (CXF JAX-RS runtime doen't pay
attention though to this method but it should).

So perhaps, a similar getSize() method can be introduced in a JAX-WS runtime, on the appropriate
class which encapsulates request/response ?

Cheers, Sergey

----- Original Message ----- 
From: "Orban, Gyorgy (IT)" <>
To: <>
Cc: "McClelland, Chris (IT)" <>; "Kralj-Taylor, Mark
(IT)" <>
Sent: Wednesday, April 02, 2008 3:53 PM
Subject: content length for http requests

I wonder if there is a standard way in cxf for setting the http content length for the request
if the message size is known in advance. We are trying to send fix length messages using a
custom client and interceptor chain. Could you please advise on this?


NOTICE: If received in error, please destroy and notify sender. Sender does not intend to
waive confidentiality or privilege. Use of this email is prohibited when received in error.

IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message