Mercurial > dive4elements > gnv-client
annotate gnv/src/main/java/de/intevation/gnv/action/mapviewer/ShowMapViewerCallBodyAction.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 | 902d4de27c37 |
children |
rev | line source |
---|---|
1022
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
952
diff
changeset
|
1 /* |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
952
diff
changeset
|
2 * Copyright (c) 2010 by Intevation GmbH |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
952
diff
changeset
|
3 * |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
952
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:
952
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:
952
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:
952
diff
changeset
|
7 */ |
28a0628b11b0
Added license file and license header.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
952
diff
changeset
|
8 |
566
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 package de.intevation.gnv.action.mapviewer; |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
11 import javax.servlet.http.HttpServletRequest; |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
12 import javax.servlet.http.HttpServletResponse; |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
13 |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
14 import org.apache.log4j.Logger; |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
15 import org.apache.struts.action.ActionForm; |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
16 import org.apache.struts.action.ActionForward; |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
17 import org.apache.struts.action.ActionMapping; |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
18 |
952 | 19 import de.intevation.gnv.action.ArtifactDatabaseActionBase; |
20 | |
566
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
21 /** |
952 | 22 * This class provides the businesslogic to show the demo GUI for |
23 * testing the MV-GNV-Interface. | |
684
57fa8019fbdc
Bring @author javadoc tags in form '@author <a href="john.doe@example.com">John Doe</a>'
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
683
diff
changeset
|
24 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
566
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
25 */ |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
26 public class ShowMapViewerCallBodyAction extends ArtifactDatabaseActionBase { |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
27 |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
28 /** |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
29 * the logger, used to log exceptions and additionally information |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
30 */ |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
31 private static Logger log = Logger |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
32 .getLogger(ShowMapViewerCallBodyAction.class); |
681
15ac78a91d1b
Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
566
diff
changeset
|
33 |
566
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
34 /** |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
35 * Constructor |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
36 */ |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
37 public ShowMapViewerCallBodyAction() { |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
38 super(); |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
39 } |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
40 |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
41 @Override |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
42 public ActionForward execute(ActionMapping mapping, ActionForm form, |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
43 HttpServletRequest request, |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
44 HttpServletResponse response) throws Exception { |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
45 log.debug("ShowMapViewerCallBodyAction.execute"); |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
46 request.setAttribute("MAPVIEWERCALL", new Boolean(true)); |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
47 return super.execute(mapping, form, request, response); |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
48 } |
5aea89b9a350
Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call.
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
49 } |