Mercurial > dive4elements > gnv-client
diff gnv/src/main/java/de/intevation/gnv/action/StoreAction.java @ 963:0441e78cd900
Add more Javadocs
gnv/trunk@1107 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 18 May 2010 11:09:33 +0000 |
parents | af22fa5567a6 |
children | 33198e55371c |
line wrap: on
line diff
--- a/gnv/src/main/java/de/intevation/gnv/action/StoreAction.java Tue May 18 10:52:12 2010 +0000 +++ b/gnv/src/main/java/de/intevation/gnv/action/StoreAction.java Tue May 18 11:09:33 2010 +0000 @@ -1,24 +1,21 @@ package de.intevation.gnv.action; -import de.intevation.gnv.action.sessionmodel.SessionModel; -import de.intevation.gnv.action.sessionmodel.SessionModelFactory; - -import de.intevation.gnv.artifactdatabase.client.ArtifactDatabaseClient; -import de.intevation.gnv.artifactdatabase.client.ArtifactDatabaseClientFactory; - -import de.intevation.gnv.artifactdatabase.objects.ArtifactObject; - import java.io.OutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; - import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; +import de.intevation.gnv.action.sessionmodel.SessionModel; +import de.intevation.gnv.action.sessionmodel.SessionModelFactory; +import de.intevation.gnv.artifactdatabase.client.ArtifactDatabaseClient; +import de.intevation.gnv.artifactdatabase.client.ArtifactDatabaseClientFactory; +import de.intevation.gnv.artifactdatabase.objects.ArtifactObject; + /** * This controller is used to save the current artifact to an xml file. A file * dialog is opened to save the file to the local disk. @@ -29,12 +26,19 @@ public static final String RESOURCE_DOWNLOAD_FAILURE = "no.artifact.chosen"; + /** + * the logger, used to log exceptions and additonaly information + */ private static Logger logger = Logger.getLogger(StoreAction.class); + /** + * Constructor + */ public StoreAction() { super(); } + @Override public ActionForward execute( ActionMapping mapping, ActionForm form, @@ -77,7 +81,12 @@ return null; } - + + /** + * Sets the header of the response. + * @param response the response + * @param uuid the uuid of the artifact + */ protected void setHeaders(HttpServletResponse response, String uuid) { String filename = "GNVArtefakt_" + uuid + ".xml";