Re: Finding server port from ServerServlet

2007-09-28 Thread Rob Heittman
:44 AM (GMT-0500) America/New_York Subject: Re: Finding server port from ServerServlet Hi thierry, Thank you for your response, but that will not work. I am trying to do this _before_ any requests come in, in the Application object. I don't have a request object at that time. Richard On 9

Re: Finding server port from ServerServlet

2007-09-28 Thread Thierry Boileau
Hi Richard, Can you try : - request.getResourceRef().getHostPort(), - or request.getRootRef().getHostPort(). (request is the Restlet request object). best regards, Thierry Boileau On 9/28/07, Richard Bronkhorst [EMAIL PROTECTED] wrote: Hi all I am working on a library providing a restlet

Re: Finding server port from ServerServlet

2007-09-28 Thread Richard Bronkhorst
Hi thierry, Thank you for your response, but that will not work. I am trying to do this _before_ any requests come in, in the Application object. I don't have a request object at that time. Richard On 9/28/07, Thierry Boileau [EMAIL PROTECTED] wrote: Hi Richard, Can you try : -

Finding server port from ServerServlet

2007-09-28 Thread Richard Bronkhorst
Hi all I am working on a library providing a restlet resource to 'plug into' other restlet projects. This library does some communication with a server when the servlet first starts, so before any requests come in. For this i need to know the port that the application is running on. So, for