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 ?