on 05-17-2006 5:23 AM
Hi All,
I want to disaply host name & port number of present server in the textview.
For Host name i have used following code. It's working great.
InetAddress n=InetAddress.getLocalHost();
String name=n.getHostName();
wdContext.currentContextElement().setSn(name);
In the same way i need The Server port number also. Can you give whcih calss i have to use to get port number. plase give me the solution.
Thanks and Regards
Praveen.D
Using WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart); you will get the complete url then you need to have a logic to just take Hostname : hostport
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.