Hi Experts,
I want to use the proxy settings of AEM6.2 on the Web Console named "Apache HTTP Components Proxy Configuration" when I use HttpClient API to call a http request, but I don't know how to do it. Of course I can define my individual bundle parameters for proxy, but if the server IP was changed we should change all of the settings about proxy include no Proxy settings.
Thanks a lot.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Kuanqi,
Out of the box http client is fragement, so any bundle using the http api by default inherit the global settings. So configuring proxy in osgi will work. Just make sure you do not have another bundle embeding or exposing http api.
Thanks
Views
Replies
Total Likes
Hi ,
Read the configuration parameters from OSGi service and pass those as the params for HttpClient for creating the client object.
Thanks
Views
Replies
Total Likes
In addition to what Praveen stated - look here at how to use OSGi configuration nodes -- Adobe Experience Manager Help | Reading Adobe Experience Manager OSGi Configuration Values
Views
Replies
Total Likes
Hi Kuanqi,
Out of the box http client is fragement, so any bundle using the http api by default inherit the global settings. So configuring proxy in osgi will work. Just make sure you do not have another bundle embeding or exposing http api.
Thanks
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies