on 07-10-2006 7:22 AM
Hi,
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.
Srinivasan T.
srinivasan,
You can get the HostName using the following code snippet:
InetAddress iNetAdd = InetAddress.getLocalHost();
String hostName = iNetAdd.getHostAddress();
Use
WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart);
to get the complete URI of the application and then you just extract the "port" number from it.
~Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.