From 0e7ac388039cf8140f37df9d83cf62b9efc95bb8 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 13 Jan 2014 13:50:34 +0200 Subject: Method for retrieving all VaadinSessions inside a HTTP session (#13053) Change-Id: I8e612ccd521d99f6b7ec6d10c72331b4d4373abe --- WebContent/statictestfiles/vaadinsessions.jsp | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 WebContent/statictestfiles/vaadinsessions.jsp (limited to 'WebContent/statictestfiles') diff --git a/WebContent/statictestfiles/vaadinsessions.jsp b/WebContent/statictestfiles/vaadinsessions.jsp new file mode 100644 index 0000000000..b22787a203 --- /dev/null +++ b/WebContent/statictestfiles/vaadinsessions.jsp @@ -0,0 +1,54 @@ + +<%@page import="com.vaadin.ui.UI"%> +<%@page import="com.vaadin.server.VaadinSession"%> + + +JSP integration + + + + + + + + + + + + + + + <% + HttpSession httpSession = request.getSession(false); + for (VaadinSession vs : VaadinSession.getAllSessions(httpSession)) { + try { + vs.lock(); + for (UI ui : vs.getUIs()) { + out.append(""); + out.append(""); + out.append(""); + out.append(""); + out.append(""); + out.append(""); + out.append(""); + + } + } finally { + vs.unlock(); + } + + } + %> +
Available UIs:
Service NameCSRF tokenUI idUI typeMain content
" + vs.getService().getServiceName() + + "" + vs.getCsrfToken() + "" + ui.getUIId() + "" + ui.getClass().getName() + "" + ui.getContent().getClass().getName() + "
+ + \ No newline at end of file -- cgit v1.2.3