diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2292.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket2292.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java index ce7960a169..adafa93a75 100644 --- a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java +++ b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java @@ -13,6 +13,7 @@ import com.vaadin.Application; import com.vaadin.server.DownloadStream; import com.vaadin.server.ExternalResource; import com.vaadin.server.RequestHandler; +import com.vaadin.server.VaadinSession; import com.vaadin.server.WrappedRequest; import com.vaadin.server.WrappedResponse; import com.vaadin.ui.Button; @@ -21,7 +22,7 @@ import com.vaadin.ui.Label; import com.vaadin.ui.Link; import com.vaadin.ui.UI.LegacyWindow; -public class Ticket2292 extends com.vaadin.Application.LegacyApplication +public class Ticket2292 extends com.vaadin.Application implements RequestHandler { @Override @@ -44,11 +45,11 @@ public class Ticket2292 extends com.vaadin.Application.LegacyApplication Link l = new Link("l", icon); main.addComponent(l); - addRequestHandler(this); + VaadinSession.getCurrent().addRequestHandler(this); } @Override - public boolean handleRequest(Application application, + public boolean handleRequest(VaadinSession application, WrappedRequest request, WrappedResponse response) throws IOException { String relativeUri = request.getRequestPathInfo(); |