cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: how to create HttpEntityEnclosingRequest with HttpAsyncContentProducer entity ?
Date Mon, 05 Aug 2013 20:20:57 GMT
I believe you want to send this to:

httpclient-users@hc.apache.org

as this is pertaining to the Http components stuff and not CXF.

Dan



On Aug 5, 2013, at 4:16 PM, camel <jjakub83@gmail.com> wrote:

> sorry, I am mistaken
> 
>                if (entity instanceof HttpAsyncContentProducer) {
>                    this.producer = (HttpAsyncContentProducer) entity; -->
> this is not executed
>                } else {
>                    this.producer = new EntityAsyncContentProducer(entity); 
> ---> this is executed
>                }
> 
> /**
> * Basic implementation of {@link HttpAsyncContentProducer} that relies on
> * inefficient and potentially blocking I/O operation redirection through
> * {@link Channels#newChannel(java.io.InputStream)}.
> *
> * @since 4.2
> */
> @NotThreadSafe
> public class EntityAsyncContentProducer implements HttpAsyncContentProducer
> {
> 
> 
> ant possibly this is why my code isn't truly asynchronous,
> How should I fix it ?
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/how-to-create-HttpEntityEnclosingRequest-with-HttpAsyncContentProducer-entity-tp5731958p5731968.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Mime
View raw message