Noel J. Bergman wrote:
For Mailet API v3, I'd like to add:

public InetAddress getRemoteAddress();

Both getRemoteHost() and getRemoteAddr() can be implemented based upon an
InetAddress object, and when dealing with the IP address, having an
InetAddress is faster than having to convert from the String form.

Noel,


This was pulled straight from the servlet spec, and the reason they give for the two methods is that a container may choose not to resolve the hostnames (to speed performance). If a container does this, then getRemoteHost() returns the same thing as getRemoteAddr().

I think James always needs to do this resolution, so I think it's fine to change this to getRemoteAddress().

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com/
p. 1.301.656.5501
e. [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to