I have defined an alias name for a directory path in the server using the HTTP Provider->alias in Visual Administrator. From the web dynpro (java) application, I have to get the path by giving only the alias name. Can anyone help with the code snippet for this? Also tell how to get the IP/hostname and port of the server through coding.
You can get the HostName using the following code snippet:
InetAddress iNetAdd = InetAddress.getLocalHost();
String hostName = iNetAdd.getHostAddress();
to get the complete URI of the application and then you just extract the "port" number from it.