You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2010/10/23 23:42:31 UTC

DataHandlers

I wonder if any of you CXF Users out there know more about common
expectations about Data Handlers than I do.

In Aegis, currently, if you put use DataHandler for a property type,
what you get at runtime depends on whether MTOM actually is on. If
it's off, the Object in the DH will be a byte[], and the stream will
be null.

If it's on, the Object will be null, and the stream will be there.

I have opened a JIRA stating an intention to make it always provide
the stream and never the byte[], but, before I do it, I thought to see
if anyone out there has opinions.

Re: DataHandlers

Posted by Christian Schneider <ch...@die-schneider.net>.
Sounds good to me. A byte[] is always bad for mass data as you can“t 
stream it then. And I guess normally when you use a datahandler it means 
you want to handle mass data.

Regards

Christian


Am 23.10.2010 23:42, schrieb Benson Margulies:
> I wonder if any of you CXF Users out there know more about common
> expectations about Data Handlers than I do.
>
> In Aegis, currently, if you put use DataHandler for a property type,
> what you get at runtime depends on whether MTOM actually is on. If
> it's off, the Object in the DH will be a byte[], and the stream will
> be null.
>
> If it's on, the Object will be null, and the stream will be there.
>
> I have opened a JIRA stating an intention to make it always provide
> the stream and never the byte[], but, before I do it, I thought to see
> if anyone out there has opinions.
>

-- 
----
http://www.liquid-reality.de


Re: DataHandlers

Posted by Daniel Kulp <dk...@apache.org>.
On Saturday 23 October 2010 5:42:31 pm Benson Margulies wrote:
> I wonder if any of you CXF Users out there know more about common
> expectations about Data Handlers than I do.
> 
> In Aegis, currently, if you put use DataHandler for a property type,
> what you get at runtime depends on whether MTOM actually is on. If
> it's off, the Object in the DH will be a byte[], and the stream will
> be null.
> 
> If it's on, the Object will be null, and the stream will be there.
> 
> I have opened a JIRA stating an intention to make it always provide
> the stream and never the byte[], but, before I do it, I thought to see
> if anyone out there has opinions.

I think making it consistent is super important, and using Streams makes the 
most sense.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog