1 Reply Latest reply on Jul 17, 2012 6:40 AM by Sham HC

    How to access CQ configuration settings using CQ HTTP client?

    Abhishek.Anand Level 1

      Hi,

      I am trying to access CQ configuration in my application using CQ HTTP client. I am able to access through ConfigAdmin, but not directly.

       

      Please suggest a way to access the configuration directly by CQ HTTP client.

       

      Is CQ proxy settings directly available to CQ HTTP client? if so, how do we access it?

      Thanks

        • 1. Re: How to access CQ configuration settings using CQ HTTP client?
          Sham HC Level 7

          Yes it is directly available. The proxy does not need to be explicitly configured for each HttpClient since it is done automatically when the com.day.commons.osgi.wrapper.commons-httpclient gets activated.  Make sure your bundle imports [1] and call as HttpClient client = new HttpClient();

           

          [1]

          org.apache.commons.httpclient,version=3.1.0 from com.day.commons.osgi.wrapper.commons-httpclient (xx)

          org.apache.commons.httpclient.methods,version=3.1.0 from com.day.commons.osgi.wrapper.commons-httpclient (xx)