Mercurial > dive4elements > gnv-client
annotate gnv/src/main/java/de/intevation/gnv/action/MapClientStandaloneAction.java @ 1022:28a0628b11b0
Added license file and license header.
gnv/trunk@1258 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 02 Nov 2010 17:15:08 +0000 |
parents | cd9414538f10 |
children |
rev | line source |
---|---|
1022
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
1 /* |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
2 * Copyright (c) 2010 by Intevation GmbH |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
3 * |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
4 * This program is free software under the LGPL (>=v2.1) |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
5 * Read the file LGPL.txt coming with the software for details |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
6 * or visit http://www.gnu.org/licenses/ if it does not exist. |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
7 */ |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
982
diff
changeset
|
8 |
982
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 /** |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 * |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
11 */ |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
12 package de.intevation.gnv.action; |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
13 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
14 import javax.servlet.http.HttpServletRequest; |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
15 import javax.servlet.http.HttpServletResponse; |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
16 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
17 import org.apache.struts.action.ActionForm; |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
18 import org.apache.struts.action.ActionForward; |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
19 import org.apache.struts.action.ActionMapping; |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
20 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
21 /** |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
22 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
23 * |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
24 */ |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
25 public class MapClientStandaloneAction extends ArtifactDatabaseActionBase { |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
26 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
27 public final static String MAPCLIENTSTANDALONE_KEY = |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
28 "de.intevation.gnv.action.MapClientStandaloneAction"; |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
29 /** |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
30 * Constructor |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
31 */ |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
32 public MapClientStandaloneAction() { |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
33 super(); |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
34 } |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
35 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
36 @Override |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
37 public ActionForward execute(ActionMapping mapping, ActionForm form, |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
38 HttpServletRequest request, |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
39 HttpServletResponse response) throws Exception { |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
40 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
41 request.setAttribute(MAPCLIENTSTANDALONE_KEY, true); |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
42 return super.execute(mapping, form, request, response); |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
43 } |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
44 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
45 |
cd9414538f10
Added possibility to switch to FullScreen-Mode of the MapClient.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
46 } |