Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to retrieve the protocol (http / https) from WDJ application URL

Hi All,

In my WDJ component, I need to get the ServerName, Port and the protocol (http / https) from the WDJ application URL. I am able to get the server name and the port but unable to get the protocol. Any help would be highly appreciated.

Code I am using is :

String ServerName = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerName();

String port = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();

Regards,

Srinivas Sistu

Not what you were looking for? View more on this topic or Ask a question