When we talk about a request made to a web application, we are talking about an HTTP request that a client, typically, a browser, makes to the web server. The server takes the context path and routes the request to the appropriate web application (for example, a Vaadin application). An important part of the HTTP request is the URL used to access the application and its resources. The following screenshot shows the most important parts of a URL:
With Vaadin Framework you can get access to all these parts. For example, in order to get the path info part of the URL, you can call:
String pathInfo = VaadinRequest.getCurrent().getPathInfo(); assert(pathInfo.equals("users"));
To get a parameter value, you can call:
String name = VaadinRequest.getCurrent().getParameter("name"); assert(name.equals("Alejandro"));