Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/ArtifactDatabaseActionBase.java @ 36:ad381cc47217
Format Code to max 80 Chars per Row
gnv/trunk@172 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 02 Oct 2009 08:54:13 +0000 |
parents | 25fdec8b4c69 |
children | fccf90761825 |
comparison
equal
deleted
inserted
replaced
35:4405f31bbc30 | 36:ad381cc47217 |
---|---|
12 import org.apache.struts.action.ActionForward; | 12 import org.apache.struts.action.ActionForward; |
13 import org.apache.struts.action.ActionMapping; | 13 import org.apache.struts.action.ActionMapping; |
14 | 14 |
15 /** | 15 /** |
16 * @author Tim Englich <tim.englich@intevation.de> | 16 * @author Tim Englich <tim.englich@intevation.de> |
17 * | 17 * |
18 */ | 18 */ |
19 public class ArtifactDatabaseActionBase extends Action { | 19 public class ArtifactDatabaseActionBase extends Action { |
20 | 20 |
21 protected final static String SUCCSESS_FORWARD_ID = "success"; | 21 protected final static String SUCCSESS_FORWARD_ID = "success"; |
22 protected final static String EXCEPTION_FORWARD_ID = "success"; | 22 protected final static String EXCEPTION_FORWARD_ID = "success"; |
23 | 23 |
24 /** | 24 /** |
25 * the logger, used to log exceptions and additonaly information | 25 * the logger, used to log exceptions and additonaly information |
26 */ | 26 */ |
27 private static Logger log = Logger.getLogger(ArtifactDatabaseActionBase.class); | 27 private static Logger log = Logger |
28 | 28 .getLogger(ArtifactDatabaseActionBase.class); |
29 | |
29 /** | 30 /** |
30 * Constructor | 31 * Constructor |
31 */ | 32 */ |
32 public ArtifactDatabaseActionBase() { | 33 public ArtifactDatabaseActionBase() { |
33 super(); | 34 super(); |
34 } | 35 } |
35 | 36 |
36 /** | 37 /** |
37 * @see org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) | 38 * @see org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping, |
39 * org.apache.struts.action.ActionForm, | |
40 * javax.servlet.http.HttpServletRequest, | |
41 * javax.servlet.http.HttpServletResponse) | |
38 */ | 42 */ |
39 @Override | 43 @Override |
40 public ActionForward execute(ActionMapping mapping, ActionForm form, | 44 public ActionForward execute(ActionMapping mapping, ActionForm form, |
41 HttpServletRequest request, HttpServletResponse response) | 45 HttpServletRequest request, HttpServletResponse response) |
42 throws Exception { | 46 throws Exception { |
43 log.debug("ArtifactDatabaseActionBase.execute"); | 47 log.debug("ArtifactDatabaseActionBase.execute"); |
44 ActionForward forward = mapping.findForward(SUCCSESS_FORWARD_ID); | 48 ActionForward forward = mapping.findForward(SUCCSESS_FORWARD_ID); |
45 return forward; | 49 return forward; |
46 } | 50 } |
47 | 51 |
48 /** | 52 /** |
49 * Returns the ExceptionForward for the ArtifactDatabaseActions | 53 * Returns the ExceptionForward for the ArtifactDatabaseActions |
54 * | |
50 * @param mapping | 55 * @param mapping |
51 * @return | 56 * @return |
52 */ | 57 */ |
53 protected ActionForward getExceptionForward (ActionMapping mapping){ | 58 protected ActionForward getExceptionForward(ActionMapping mapping) { |
54 log.debug("ArtifactDatabaseActionBase.getExceptionForward"); | 59 log.debug("ArtifactDatabaseActionBase.getExceptionForward"); |
55 ActionForward lForward = mapping.findForward(EXCEPTION_FORWARD_ID); | 60 ActionForward lForward = mapping.findForward(EXCEPTION_FORWARD_ID); |
56 return lForward; | 61 return lForward; |
57 } | 62 } |
58 } | 63 } |