001 //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/ogcwebservices/wmps/operation/PrintMapResponse.java $
002 /*----------------------------------------------------------------------------
003 This file is part of deegree, http://deegree.org/
004 Copyright (C) 2001-2009 by:
005 Department of Geography, University of Bonn
006 and
007 lat/lon GmbH
008
009 This library is free software; you can redistribute it and/or modify it under
010 the terms of the GNU Lesser General Public License as published by the Free
011 Software Foundation; either version 2.1 of the License, or (at your option)
012 any later version.
013 This library is distributed in the hope that it will be useful, but WITHOUT
014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016 details.
017 You should have received a copy of the GNU Lesser General Public License
018 along with this library; if not, write to the Free Software Foundation, Inc.,
019 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020
021 Contact information:
022
023 lat/lon GmbH
024 Aennchenstr. 19, 53177 Bonn
025 Germany
026 http://lat-lon.de/
027
028 Department of Geography, University of Bonn
029 Prof. Dr. Klaus Greve
030 Postfach 1147, 53001 Bonn
031 Germany
032 http://www.geographie.uni-bonn.de/deegree/
033
034 e-mail: info@deegree.org
035 ----------------------------------------------------------------------------*/
036
037 package org.deegree.ogcwebservices.wmps.operation;
038
039 import java.util.Date;
040
041 /**
042 * PrintMapInitialResponse to inform the user if his request the status of his requst before
043 * processing. If the request is (not) successfully recieved an appropriate message will be sent to
044 * the user.
045 *
046 * @author <a href="mailto:deshmukh@lat-lon.de">Anup Deshmukh</a>
047 * @author last edited by: $Author: mschneider $
048 *
049 * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
050 */
051
052 public class PrintMapResponse {
053
054 private String id;
055
056 private Date timeStamp;
057
058 private Date expectedTime;
059
060 private String emailAddress;
061
062 private String exception;
063
064 private String message;
065
066 /**
067 * Create an instance of the PrintMapResponse
068 *
069 * @param id
070 * @param emailAddress
071 * @param timeStamp
072 * @param expectedTime
073 * @param message
074 * @param exception
075 */
076 public PrintMapResponse( String id, String emailAddress, Date timeStamp, Date expectedTime,
077 String message, String exception ) {
078 this.id = id;
079 this.emailAddress = emailAddress;
080 this.timeStamp = timeStamp;
081 this.expectedTime = expectedTime;
082 this.exception = exception;
083 this.message = message;
084
085 }
086
087 /**
088 * Get PrintMap Request Id
089 *
090 * @return String
091 */
092 public String getId() {
093 return this.id;
094 }
095
096 /**
097 * Get PrintMap request Email Address
098 *
099 * @return String
100 */
101 public String getEmailAddress() {
102 return this.emailAddress;
103
104 }
105
106 /**
107 * Get PrintMap request TimeStamp
108 *
109 * @return Date
110 */
111 public Date getTimeStamp() {
112 return this.timeStamp;
113 }
114
115 /**
116 * Get Success/Failed Message for this PrintMap request.
117 *
118 * @return String
119 */
120 public String getMessage() {
121 return message;
122 }
123
124 /**
125 * Get ExpectedTime for the service to process the PrintMap request.
126 *
127 * @return Date
128 */
129 public Date getExpectedTime() {
130 return this.expectedTime;
131 }
132
133 /**
134 * @return Returns the exception.
135 */
136 public String getException() {
137 return this.exception;
138 }
139
140
141 }