Get current URL from Tomcat6 server?

I’m looking for a way to get the current URL from my Tomcat6 with Vaadin7. The URL is: http://mydomain:8080/MyProject.



public class MyURL {
     public MyURL(){
            System.out.println(VaadinServletService.getCurrentRequest().toString();
            System.out.println(VaadinServletService.getCurrentServletRequest().toString());
            System.out.println(VaadinServlet.getCurrent().toString());
     }
}

Any idea ?

Use Page.getLocation() to get the URL that’s in the browser location bar, verbatim. This may differ from what the servlet considers the current URL due to proxies, virtual hosts etc.

Thanks !