This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help Needed for Proxy-Client settings question

 
Sonali Sabnis
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have one query regarding following question:

Q. Given the request from mybox.certkiller.com, with an IP address of 10.0.1.11 on port 33086. Place the appropriate ServletRequest methods onto their corresponding return values:

Proxy-Client settings ServletRequest methods

mybox.certkiller.com <<insert code here>
10.0.1.11 <<insert code here>>
33086 <<insert code here>>

The given servlet methods are:
getServerPort
getServerAddress
getServerName
getRemotePort
getRemoteAddress
getRemoteHost

The answer to this question is given as getRemoteHost for all the above mentioned proxy-client settings.
But according to the understanding, it shoud be like this:

mybox.certkiller.com :: getRemoteHost
10.0.1.11 :: getRemoteAddress
33086 :: getRemotePort

Kindly send the response...
[ August 25, 2008: Message edited by: sonali sabnis ]
 
Sonali Sabnis
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reply....Its urgent
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is it urgent?

Anyway in answer to your question I suspect it's an error in the answer, and your suggested answer is what I would have broadly chosen. You didn't attribute the question to anywhere though.

Also AFAIK the method should be getRemoteAddr() not getRemoteAddress(), not sure if that is a typo in the question, or your typo.

HTH - Rufus.
 
Sonali Sabnis
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rufus...Well that was typo in the question. I just copied as it is and placed.

Thanks anyways...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic