Ok I see. For this you can use the Request.getRootRef() method that was recently added.
Best regards, Jerome > -----Message d'origine----- > De : Chuck Hinson [mailto:[EMAIL PROTECTED] > Envoyé : mardi 20 février 2007 18:29 > À : [email protected] > Objet : RE: RE: Find host info from Application > > I need, for example, to find out what the canonical > hostname/base url of my deployment environment is. > > For example, when creating atom:source elements, I have to be > able to construct a URL for a feed (that's part of my > application), and I can't do that if I don't know what my > hostname and port number are. > > --Chuck > > -----Original Message----- > From: Jerome Louvel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 20, 2007 12:12 PM > To: [email protected] > Subject: RE: Find host info from Application > > > Hi Chuck, > > As an Application is expected to be portable from one > deployment environment to another, we intentionally don't > have a reference to the parent VirtualHost. > > I would be interested to know what is the requirement leading > you in the path. For now, if you really need this reference, > you should manually pass it to the constructor of your application. > > Best regards, > Jerome > > > -----Message d'origine----- > > De : Chuck Hinson [mailto:[EMAIL PROTECTED] Envoyé : > mardi 20 > > février 2007 18:06 À : [email protected] Objet : Find host > > info from Application > > > > > > From within an Application, how does one get hold of the > VirtualHost > > to which the application is attached? > > > > --Chuck > > > > > > ------------------------------------ > > Chuck Hinson > > Gestalt LLC > > phone: 610.994.2833 > > IM: chucking24 (Yahoo) > >

