You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2012/10/01 20:11:08 UTC

[jira] [Updated] (CXF-4525) expose http client

     [ https://issues.apache.org/jira/browse/CXF-4525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-4525:
-----------------------------

    Comment: was deleted

(was: Oleg,  

There might be a bug here in the async client.  In DefaultAsyncRequestDirector, I see:

{code:java}
this.currentRequest.incrementExecCount();
if (this.currentRequest.getExecCount() > 1
    && !this.requestProducer.isRepeatable()
    && this.requestContentProduced) {
    throw new NonRepeatableRequestException("Cannot retry request " +
                "with a non-repeatable request entity.");
}
{code}

When the request is submitted, the execCount = 0.  The  increment makes it one.  Thus, the first check in the "if" always returns false and the exception is thrown.  Thus, even setting the "true" on the isRepeatable() on the entity isn't accomplishing anything.  It's never called.   Is that a bug or is there something else I should be doing?



)
    
> expose http client
> ------------------
>
>                 Key: CXF-4525
>                 URL: https://issues.apache.org/jira/browse/CXF-4525
>             Project: CXF
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 2.7.0
>            Reporter: Shaun Elliott
>            Assignee: Daniel Kulp
>             Fix For: 2.7.0
>
>
> The class: CXFAsyncRequester hides the DefaultHttpAsyncClient, thus preventing interaction from outside classes. One use case would be to leverage the embedded DefaultHttpAsyncClient to do NTLM authentication, which is currently not possible with CXF.
> AsyncHTTPConduit will also need a getter on the factory field.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira