Hi Yes, UriInfo will be added later.
In meantime one workaround is to use a CXF-specific mechanism to retrieve an endpoint URI: ServerRegistry sr = bus.getExtension(ServerRegistry.class); Server s = sr.getServers().get(0); Endpoint e = s.getEndpoint(); // get the address from there This is something you may want to do in a root resource class or, alternatively, before starting a server, you may want to register a ServerLifeCycleListener with a ServerLifeCycleManager. The base endpoint URI would be an absolute URI for the root resource and can be used to calculate an absolute URI for a given request too. Cheers, Sergey -----Original Message----- From: Joe Toth [mailto:[EMAIL PROTECTED] Sent: 05 February 2008 21:50 To: Daniel Kulp Cc: [email protected] Subject: Re: @QueryParam Awesome! @QueryParam works great. I guess @HttpContext, UriInfo and the others are coming later? Is there anyway I can get the ipAddress of the client calling this REST service? Thanks On Tue, 2008-02-05 at 16:09 -0500, Daniel Kulp wrote: > I think the QueryParam stuff was added this morning. I'm deploying a > new snapshot right now (probably another 20 minutes or so), so you might > want to give that a try and see if it works. > > Thanks! > Dan > > > On Tuesday 05 February 2008, Joe Toth wrote: > > I'm using 2.1-incubator-SNAPSHOT from this repository > > http://people.apache.org/repo/m2-snapshot-repository > > > > I saw in the jira issues that @QueryParam hasn't been implemented yet. > > > > I have a service with optional parameters and the parameters might > > keep growing so I wanted to keep the URL query based. > > > > Is there any way to get query parameters currently? > > Also, the IP Address of the person calling the service? > > > > The following gives me all null parameters. > > > > public SeamSponsorship nextSeamSponsorship(@HttpContext > > UriInfo info, @QueryParam("seamId") > > String seamId, @QueryParam("clientIPAddress") > > String clientIPAddress, @QueryParam("domain") > > String domain) > > > > Thanks > > > ---------------------------- IONA Technologies PLC (registered in Ireland) Registered Number: 171387 Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
