Skip to Content
0
Mar 13, 2014 at 01:32 PM

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

167 Views

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