aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes getLocalAddr, getLocalPort, getRemoteAddr, getRemotHost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "getLocalAddr, getLocalPort, getRemoteAddr, getRemotHost" Watch "getLocalAddr, getLocalPort, getRemoteAddr, getRemotHost" New topic
Author

getLocalAddr, getLocalPort, getRemoteAddr, getRemotHost

Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
Hi,

I'm reading the Charles Lyon's book and I see that these methods (getLocalAddr(), getLocalPort(), getRemoteAddr(), getRemotHost(), etc...) are not an Exam Objective but when I've made the mock exam trial of Enthuware and there was a question about these methods.
So... are these methods a part of the exam or not ?

Same question about getContextPath(), getPathInfo(), getServletPath(), ...

Thanks in advance,

Angy.


SCJP 5
Ben Pheonix
Ranch Hand

Joined: Dec 11, 2012
Posts: 46
    
    1

Hi,

Which edition of Charles Lyon's book you are reading? On the other hand, these methods are part of servlet AP, so we should be expected
to test against these methods.

HTH,
Ben


Twitter:ben_pheonix
Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
3rd edition :-)
Ben Pheonix
Ranch Hand

Joined: Dec 11, 2012
Posts: 46
    
    1

Hi,
Is it the latest version of the simulator you are using? Additionally no harm to have the knowledge, i suppose they are still on the exam.
One of my friends appeared for the exam, and they did appear on the exam. So as part of servlet API, i suppose we should be ready to
be tested against these methods.
HTH,
Ben
Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
Yes I guess.
But It's weird... Certainly a mistake in the book :-).

Thank you !

Angy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getLocalAddr, getLocalPort, getRemoteAddr, getRemotHost
 
Similar Threads
New methods in ServletRequest
ServlerRequest Methods
Problem in understanding some methods of ServletRequest
difference between Ports ?
How can I get port number and server host name by java code in my JSP