001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/ogcwebservices/wmps/configuration/PrintMapParam.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2008 by: 006 EXSE, Department of Geography, University of Bonn 007 http://www.giub.uni-bonn.de/deegree/ 008 lat/lon GmbH 009 http://www.lat-lon.de 010 011 This library is free software; you can redistribute it and/or 012 modify it under the terms of the GNU Lesser General Public 013 License as published by the Free Software Foundation; either 014 version 2.1 of the License, or (at your option) any later version. 015 016 This library is distributed in the hope that it will be useful, 017 but WITHOUT ANY WARRANTY; without even the implied warranty of 018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 019 Lesser General Public License for more details. 020 021 You should have received a copy of the GNU Lesser General Public 022 License along with this library; if not, write to the Free Software 023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 024 025 Contact: 026 027 Andreas Poth 028 lat/lon GmbH 029 Aennchenstr. 19 030 53115 Bonn 031 Germany 032 E-Mail: poth@lat-lon.de 033 034 Prof. Dr. Klaus Greve 035 Department of Geography 036 University of Bonn 037 Meckenheimer Allee 166 038 53115 Bonn 039 Germany 040 E-Mail: greve@giub.uni-bonn.de 041 042 043 ---------------------------------------------------------------------------*/ 044 045 package org.deegree.ogcwebservices.wmps.configuration; 046 047 /** 048 * This class is a container to store the print map parameters used to access the (jasper reports) 049 * template and output directory parameters. 050 * 051 * @author <a href="mailto:deshmukh@lat-lon.de">Anup Deshmukh</a> 052 * 053 * @author last edited by: $Author: apoth $ 054 * 055 * @version $Revision: 9345 $, $Date: 2007-12-27 17:22:25 +0100 (Do, 27 Dez 2007) $ 056 */ 057 058 public class PrintMapParam { 059 060 private String format; 061 062 private String templateDirectory; 063 064 private String onlineResource; 065 066 private String plotDirectory; 067 068 private String plotImageDir; 069 070 private String adminMailAddress; 071 072 private String mailHost; 073 074 private String mailTextTemplate; 075 076 private int targetResolution = 300; 077 078 /** 079 * Create a new PrintMapParam instance. 080 * 081 * @param format 082 * @param templateDirectory 083 * @param onlineResource 084 * @param plotDirectory 085 * @param plotImageDir 086 * @param adminMailAddress 087 * @param mailHost 088 */ 089 public PrintMapParam( String format, String templateDirectory, String onlineResource, 090 String plotDirectory, String plotImageDir, String adminMailAddress, 091 String mailHost, String mailTextTemplate, int targetResolution ) { 092 this.format = format; 093 this.templateDirectory = templateDirectory; 094 this.onlineResource = onlineResource; 095 this.plotDirectory = plotDirectory; 096 this.plotImageDir = plotImageDir; 097 this.adminMailAddress = adminMailAddress; 098 this.mailHost = mailHost; 099 this.mailTextTemplate = mailTextTemplate; 100 this.targetResolution = targetResolution; 101 } 102 103 /** 104 * @return Returns the format. default: pdf 105 */ 106 public String getFormat() { 107 return this.format; 108 } 109 110 /** 111 * @return Returns the plotDirectory. 112 */ 113 public String getPlotDirectory() { 114 return this.plotDirectory; 115 } 116 117 /** 118 * @return Returns the adminMailAddress. 119 */ 120 public String getAdminMailAddress() { 121 return this.adminMailAddress; 122 } 123 124 /** 125 * @return Returns the mailHost. 126 */ 127 public String getMailHost() { 128 return this.mailHost; 129 } 130 131 /** 132 * @return Returns the plotImgDir. 133 */ 134 public String getPlotImageDir() { 135 return this.plotImageDir; 136 } 137 138 /** 139 * @return Returns the templateDirectory. 140 */ 141 public String getTemplateDirectory() { 142 return this.templateDirectory; 143 } 144 145 /** 146 * @return Returns the onlineResource. 147 */ 148 public String getOnlineResource() { 149 return this.onlineResource; 150 } 151 152 /** 153 * returns the template (text) for creating a mail to inform a user where to access the result 154 * of a PrintMap request 155 * 156 * @return the template (text) for creating a mail to inform a user where to access the result 157 * of a PrintMap request 158 */ 159 public String getMailTextTemplate() { 160 return mailTextTemplate; 161 } 162 163 /** 164 * returns the resolution of the print target in DPI 165 * 166 * @return the resolution of the print target in DPI 167 */ 168 public int getTargetResolution() { 169 return targetResolution; 170 } 171 172 }