Expand my Community achievements bar.

How to read Apache’s HTTP Proxy Configuration?

Avatar

Level 3

Problem statement is that AEM has proxy enabled and we need to connect to a third party. Due to this proxy, the connection isn’t getting established.

We would need to read AEM’s proxy configuration properties like Host, port, username and password. Then we can use it in our code and call to proxy supported Third party method.

The issue we are not able to read Apache’s HTTP Proxy Configuration as it cannot be referenced. Any possible solution to read this configuration?

Attaching screenshot for reference. 

1 Reply

Avatar

Level 9

Hi,

You can still user OSGI configuration admin API.

Here is the doc of API.

https://felix.apache.org/apidocs/configadmin/1.2.4/org/osgi/service/cm/ConfigurationAdmin.html

PID of configuration you can find in your snapshot.

Regards,

Jitendra