• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help Needed for Proxy-Client settings question

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please reply....Its urgent
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rufus...Well that was typo in the question. I just copied as it is and placed.

Thanks anyways...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic