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