Jochen Wiedmann wrote:
I also sent a mail about a 1-line method I'd like added to XmlRpxServlet:
http://mail-archives.apache.org/mod_mbox/ws-xmlrpc-user/200607.mbox/raw/[EMAIL PROTECTED]/
It's in my record, Alan. I have difficulties to keep it up, though.
One thing's for sure: As in the case of the XmlRpcServlet, you won't
recieve one particular accessor method, but a suggestion (and possibly
code additions) for getting all the required info. (Patches welcome,
though.)
I'm suggesting that this method is added to Connection:
public InetAddress getRemoteAddr() {
return socket.getInetAddress();
}
Then the address of the client could be retrieved as follows:
class RequestHandler implements XmlRpcHandler {
public Object execute(XmlRpcRequest req) throws XmlRpcException {
RequestData rd = (RequestData) req.getConfig();
Connection c = rd.getConnection();
InetAddress ia = c.getRemoteAddr();
--
Alan Burlison
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]