bjoern@3691: package de.intevation.flys.client.server; bjoern@3691: bjoern@3691: import de.intevation.flys.client.server.auth.User; bjoern@3691: bjoern@3691: import javax.servlet.http.HttpSession; bjoern@3691: bjoern@3691: public class RemoteServiceServlet bjoern@3691: extends com.google.gwt.user.server.rpc.RemoteServiceServlet bjoern@3691: { bjoern@3691: /** bjoern@3691: * Return the current logged in user from the HTTP Session christian@3696: */ bjoern@3691: public User getUser() { bjoern@3691: HttpSession session = this.getThreadLocalRequest().getSession(); bjoern@3691: return (User)session.getAttribute("user"); bjoern@3691: } bjoern@3691: }