You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Thomas Günter (JIRA)" <ji...@apache.org> on 2016/12/22 10:29:58 UTC

[jira] [Created] (CAMEL-10640) Custom AsyncHttpClientConfig not used in WsEndpoint

Thomas Günter created CAMEL-10640:
-------------------------------------

             Summary: Custom AsyncHttpClientConfig not used in WsEndpoint
                 Key: CAMEL-10640
                 URL: https://issues.apache.org/jira/browse/CAMEL-10640
             Project: Camel
          Issue Type: Bug
          Components: camel-ahc-ws
    Affects Versions: 2.18.1
            Reporter: Thomas Günter


Provided custom AsyncHttpClientConfig is not used by WsEndpoint.java.

Current implementation: 
{code:title=WsEndpoint.java:109|borderStyle=solid}
    protected AsyncHttpClient createClient(AsyncHttpClientConfig config) {
        AsyncHttpClient client;
        if (config == null) {
            config = new DefaultAsyncHttpClientConfig.Builder().build();
            client = new DefaultAsyncHttpClient(config);
        } else {
            client = new DefaultAsyncHttpClient();
        }
        return client;
    }
{code}

Expected implementation:
{code:title=WsEndpoint.java:109|borderStyle=solid}
    protected AsyncHttpClient createClient(AsyncHttpClientConfig config) {
        AsyncHttpClient client;
        if (config == null) {
            config = new DefaultAsyncHttpClientConfig.Builder().build();
            client = new DefaultAsyncHttpClient(config);
        } else {
            client = new DefaultAsyncHttpClient(config);
        }
        return client;
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)