ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rogers, Mike" <m...@technology3.com>
Subject RE: Client IP Address accessable from handler methods
Date Mon, 08 Jul 2002 13:16:09 GMT
Hmm. In that case, you may want to subclass and override some of the
XmlRpcServer's functions to trap the IP address before the function call is
made.
Possibly log the method called and the IP?

Mike

> ----------
> From: 	thomas moser
> Reply To: 	rpc-user@xml.apache.org
> Sent: 	Wednesday, July 3, 2002 4:54 AM
> To: 	rpc-user@xml.apache.org
> Subject: 	Re: Client IP Address accessable from handler methods
> 
> Hi Mike,
> 
> well, this is not quite what I ment. I need to produce billing records
> upon a 
> consumption of some clients at *application level*. And there an IP
> address 
> is good information for tracability. It's not about authentication or 
> filtering with IP addresses.
> 
> Thanks,
> 	Thomas.
> 
> 
> On Wednesday 03 July 2002 00:43, Rogers, Mike wrote:
> > We have been doing this authentication at the level above the handler.
> For
> > example, we use the base XmlRpcServlet to register handlers, and have
> also
> > coded the servlet to do the authentication in the doPost method of the
> > servlet before it called xmlrpc.execute
> >
> >
> > Mike
> >
> > > ----------
> > > From: 	thomas moser
> > > Reply To: 	rpc-user@xml.apache.org
> > > Sent: 	Tuesday, July 2, 2002 3:19 PM
> > > To: 	rpc-user@xml.apache.org
> > > Subject: 	Client IP Address accessable from handler methods
> > >
> > > Hi all,
> > >
> > > For logging (billing records / tracability) I need to have access to
> the
> > > clients IP address from withing my methods of a registered handler
> > > object.
> > >
> > > Did I miss a way of accessing it? Am I the first on with this problem,
> or
> > > has
> > > someone done that already? How big an effort would it be? I guess we'd
> > > need a
> > > getClientIP() for the corresponding Connection somehow accessable
> through
> > > a
> > > reference passed on by the XmlRpcHandler Interface. What do you think?
> > >
> > > Thanks for your time,
> > >
> > > cu,
> > > 	Thomas.
> 
> 

Mime
View raw message