view flys-client/src/main/java/de/intevation/flys/client/server/RemoteServiceServlet.java @ 3689:c938e568c4a2 2.9

merged flys-backend/2.9
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:44 +0200
parents fed914a42a10
children a050cb5f303f
line wrap: on
line source
package de.intevation.flys.client.server;

import de.intevation.flys.client.server.auth.User;

import javax.servlet.http.HttpSession;

public class RemoteServiceServlet
extends      com.google.gwt.user.server.rpc.RemoteServiceServlet
{
    /**
     * Return the current logged in user from the HTTP Session
    */
    public User getUser() {
        HttpSession session = this.getThreadLocalRequest().getSession();
        return (User)session.getAttribute("user");
    }
}

http://dive4elements.wald.intevation.org