001: /*---------------- FILE HEADER ------------------------------------------
002:
003: This file is part of deegree.
004: Copyright (C) 2001-2008 by:
005: EXSE, Department of Geography, University of Bonn
006: http://www.giub.uni-bonn.de/deegree/
007: lat/lon GmbH
008: http://www.lat-lon.de
009:
010: This library is free software; you can redistribute it and/or
011: modify it under the terms of the GNU Lesser General Public
012: License as published by the Free Software Foundation; either
013: version 2.1 of the License, or (at your option) any later version.
014:
015: This library is distributed in the hope that it will be useful,
016: but WITHOUT ANY WARRANTY; without even the implied warranty of
017: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
018: Lesser General Public License for more details.
019:
020: You should have received a copy of the GNU Lesser General Public
021: License along with this library; if not, write to the Free Software
022: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
023:
024: Contact:
025:
026: Andreas Poth
027: lat/lon GmbH
028: Aennchenstr. 19
029: 53115 Bonn
030: Germany
031: E-Mail: poth@lat-lon.de
032:
033: Prof. Dr. Klaus Greve
034: Department of Geography
035: University of Bonn
036: Meckenheimer Allee 166
037: 53115 Bonn
038: Germany
039: E-Mail: greve@giub.uni-bonn.de
040:
041:
042: ---------------------------------------------------------------------------*/
043: package org.deegree.ogcwebservices.csw.discovery;
044:
045: import org.deegree.ogcwebservices.DefaultOGCWebServiceResponse;
046:
047: /**
048: * Class representation of a <code>GetRecordsResponse/code>.
049: *
050: * @author <a href="mailto:tfr@users.sourceforge.net">Torsten Friebe </a>
051: * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider </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 GetRecordsResult extends DefaultOGCWebServiceResponse {
059:
060: private String version = "2.0.0";
061:
062: private SearchStatus searchStatus;
063:
064: private SearchResults searchResults;
065:
066: /**
067: *
068: * @param request
069: * @param version
070: * @param status
071: * @param results
072: */
073: GetRecordsResult(GetRecords request, String version,
074: SearchStatus status, SearchResults results) {
075: super (request);
076: this .searchStatus = status;
077: this .searchResults = results;
078: this .version = version;
079: }
080:
081: /**
082: * The SearchStatus must be present and indicates the status of the
083: * response. The status attribute is used to indicate the completion status
084: * of the GetRecords operation.
085: * @return the SearchResult as a status of the response.
086: */
087: public SearchStatus getSearchStatus() {
088: return this .searchStatus;
089: }
090:
091: /**
092: * @return the actual SeachResults
093: */
094: public SearchResults getSearchResults() {
095: return this .searchResults;
096: }
097:
098: /**
099: * @return the current version String of the GetRecordResult.
100: */
101: public String getVersion() {
102: return version;
103: }
104:
105: }
|