Sunday, June 25. 2006Get the remote address using ServletRequest.getRemoteAddr()Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Talk about being "lazy". Returning a String object for multi-purpose use, i.e. if you need an InetAddress object, just "create on the fly"??
I read the bug description and it says that, "the intention was to be like what CGI does, and that's string based.", so, does that mean that the team building the SDK was emulating what existing capabilities CGI has only? They probably took the easy way out to give a generic object such as String back so that they need not write additional methods to return an InetAddress object when it probably wasn't needed in the first place. That's because they "assume" that the developer would use the java.net API to get the InetAddress object when required. Hmmm.. Just wondering, if the API code will use the InetAddress.toString() method in the getRemoteAddr() method?? |
Picture of the week
![]() Calendar
QuicksearchDon't like the current style?Categories |
|||||||||||||||||||||||||||||||||||||||||||||||||