You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sergey Beryozkin <sb...@gmail.com> on 2017/05/23 08:50:35 UTC

Re: Getting Full Address of Server?

Hi James, UriInfo.getRequestUri or getAbsolutePath should give the right 
info at the runtime

Sergey
On 23/05/17 04:19, James Carman wrote:
> Is there a way to ascertain the full address of a server created with
> JAXRSServerFactoryBean?  For example, if I only set the address to "/foo",
> is there any way to know that the full address is actually "
> http://10.1.1.1/cxf/foo"?
> 

Re: Getting Full Address of Server?

Posted by James Carman <ja...@carmanconsulting.com>.
What I'm looking to do is check in with a service registry at startup time,
so I won't be executing a request at the time. Will UriInfo still work?
On Tue, May 23, 2017 at 4:50 AM Sergey Beryozkin <sb...@gmail.com>
wrote:

> Hi James, UriInfo.getRequestUri or getAbsolutePath should give the right
> info at the runtime
>
> Sergey
> On 23/05/17 04:19, James Carman wrote:
> > Is there a way to ascertain the full address of a server created with
> > JAXRSServerFactoryBean?  For example, if I only set the address to
> "/foo",
> > is there any way to know that the full address is actually "
> > http://10.1.1.1/cxf/foo"?
> >
>

Re: Getting Full Address of Server?

Posted by James Carman <ja...@carmanconsulting.com>.
What I'm looking to do is check in with a service registry at startup time,
so I won't be executing a request at the time. Will UriInfo still work?
On Tue, May 23, 2017 at 4:50 AM Sergey Beryozkin <sb...@gmail.com>
wrote:

> Hi James, UriInfo.getRequestUri or getAbsolutePath should give the right
> info at the runtime
>
> Sergey
> On 23/05/17 04:19, James Carman wrote:
> > Is there a way to ascertain the full address of a server created with
> > JAXRSServerFactoryBean?  For example, if I only set the address to
> "/foo",
> > is there any way to know that the full address is actually "
> > http://10.1.1.1/cxf/foo"?
> >
>