List of usage examples for com.vaadin.server Page setLocation
public void setLocation(URI uri)
From source file:org.jdal.vaadin.VaadinUtils.java
License:Apache License
/** * Exit application/*from w ww . ja va2s.co m*/ */ public static void exit() { UI.getCurrent().close(); VaadinSession.getCurrent().close(); Page page = Page.getCurrent(); String location = StringUtils.substringBeforeLast(page.getLocation().toString(), page.getUriFragment()); location = StringUtils.substringAfterLast(location, "#"); page.setLocation(location); }