Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6964

JAX-RS 2 client api - needs support httpclient parameters in configuration

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      To configure a jax-rs client low level parameters of httpclient, I'm currently doing like following ways

              ClientBuilder clientBuilder = ClientBuilder.newBuilder()
                  .property(CoreConnectionPNames.CONNECTION_TIMEOUT, connectionTimeout)
                  .property(CoreConnectionPNames.SO_TIMEOUT, socketTimeout)
                  .property(ClientPNames.CONN_MANAGER_TIMEOUT, requestTimeout)
                  .property("http.connection-manager.max-per-host", ImmutableMap.of(HostConfiguration.ANY_HOST_CONFIGURATION, maxConnHost))
                  .property("http.connection-manager.max-total", maxConnTotal)
                  .property(CoreConnectionPNames.STALE_CONNECTION_CHECK, true)
                  .register(JACKSON_PROVIDER);
      

      and I noticed all these ways of configurations are deprecated way in httpcomponent 4.x.
      They recommended to use org.apache.http.client.config and org.apache.http.config (like RequestConfig) but I couldn't find any possible (or straightforward) direction in CXF.
      There must be new way of support this configuration over deprecated way.

      Attachments

        Issue Links

          Activity

            People

              sergey_beryozkin Sergey Beryozkin
              violkim Chester Kim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: