Mercurial > dive4elements > river
annotate flys-client/src/main/java/de/intevation/flys/client/server/RemoteServiceServlet.java @ 3710:255decb14439
Improved i18n in minfo code.
flys-client/trunk@5458 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 13 Sep 2012 13:49:29 +0000 |
parents | a050cb5f303f |
children | 887d7001eeec |
rev | line source |
---|---|
3691
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.client.server; |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
2 |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
3 import de.intevation.flys.client.server.auth.User; |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
4 |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
5 import javax.servlet.http.HttpSession; |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
6 |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
7 public class RemoteServiceServlet |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
8 extends com.google.gwt.user.server.rpc.RemoteServiceServlet |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
9 { |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
10 /** |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
11 * Return the current logged in user from the HTTP Session |
3696 | 12 */ |
3691
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
13 public User getUser() { |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
14 HttpSession session = this.getThreadLocalRequest().getSession(); |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
15 return (User)session.getAttribute("user"); |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
16 } |
b0c1d9e06a69
Move RemoteServiceServlet to server package
Bjoern Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
17 } |