001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/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 08:22:25 -0800 (Thu, 27 Dec 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,
090: String onlineResource, String plotDirectory,
091: String plotImageDir, String adminMailAddress,
092: String mailHost, String mailTextTemplate,
093: int targetResolution) {
094: this .format = format;
095: this .templateDirectory = templateDirectory;
096: this .onlineResource = onlineResource;
097: this .plotDirectory = plotDirectory;
098: this .plotImageDir = plotImageDir;
099: this .adminMailAddress = adminMailAddress;
100: this .mailHost = mailHost;
101: this .mailTextTemplate = mailTextTemplate;
102: this .targetResolution = targetResolution;
103: }
104:
105: /**
106: * @return Returns the format. default: pdf
107: */
108: public String getFormat() {
109: return this .format;
110: }
111:
112: /**
113: * @return Returns the plotDirectory.
114: */
115: public String getPlotDirectory() {
116: return this .plotDirectory;
117: }
118:
119: /**
120: * @return Returns the adminMailAddress.
121: */
122: public String getAdminMailAddress() {
123: return this .adminMailAddress;
124: }
125:
126: /**
127: * @return Returns the mailHost.
128: */
129: public String getMailHost() {
130: return this .mailHost;
131: }
132:
133: /**
134: * @return Returns the plotImgDir.
135: */
136: public String getPlotImageDir() {
137: return this .plotImageDir;
138: }
139:
140: /**
141: * @return Returns the templateDirectory.
142: */
143: public String getTemplateDirectory() {
144: return this .templateDirectory;
145: }
146:
147: /**
148: * @return Returns the onlineResource.
149: */
150: public String getOnlineResource() {
151: return this .onlineResource;
152: }
153:
154: /**
155: * returns the template (text) for creating a mail to inform a user where to access the result
156: * of a PrintMap request
157: *
158: * @return the template (text) for creating a mail to inform a user where to access the result
159: * of a PrintMap request
160: */
161: public String getMailTextTemplate() {
162: return mailTextTemplate;
163: }
164:
165: /**
166: * returns the resolution of the print target in DPI
167: *
168: * @return the resolution of the print target in DPI
169: */
170: public int getTargetResolution() {
171: return targetResolution;
172: }
173:
174: }
|