• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get implementation of getRemoteAddr() and getRemoteHost() and getRemotePort()  RSS feed

 
ganesh pol
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible for some one to give me implementation done by server (like Tomcat, JBoss) for getting getRemoteAddr(), getRemoteHost(),getRemotePort()

2] what is subtle difference in these two methods

3] if i am not making mistake then implementation of these methods depends upon server to server



Please help me it is urgent
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First you should read the API coverage for the methods, it should explain the difference. Second, while running each server you can output request.getClass().getName() to get the class that implements the interface, then you can download the source and start from there.

Dave
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!