From: <jos...@us...> - 2009-10-29 15:40:57
|
Revision: 5396 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=5396&view=rev Author: josegar74 Date: 2009-10-29 15:40:46 +0000 (Thu, 29 Oct 2009) Log Message: ----------- Fixes related to ticket 162 about harvesting problems: Using typeNames and outputFormat from Capabilities document Added Paths: ----------- trunk/src/org/fao/geonet/csw/common/OutputFormatPreference.java Added: trunk/src/org/fao/geonet/csw/common/OutputFormatPreference.java =================================================================== --- trunk/src/org/fao/geonet/csw/common/OutputFormatPreference.java (rev 0) +++ trunk/src/org/fao/geonet/csw/common/OutputFormatPreference.java 2009-10-29 15:40:46 UTC (rev 5396) @@ -0,0 +1,57 @@ +//============================================================================= +//=== Copyright (C) 2001-2008 Food and Agriculture Organization of the +//=== United Nations (FAO-UN), United Nations World Food Programme (WFP) +//=== and United Nations Environment Programme (UNEP) +//=== +//=== This program is free software; you can redistribute it and/or modify +//=== it under the terms of the GNU General Public License as published by +//=== the Free Software Foundation; either version 2 of the License, or (at +//=== your option) any later version. +//=== +//=== This program is distributed in the hope that it will be useful, but +//=== WITHOUT ANY WARRANTY; without even the implied warranty of +//=== MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +//=== General Public License for more details. +//=== +//=== You should have received a copy of the GNU General Public License +//=== along with this program; if not, write to the Free Software +//=== Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA +//=== +//=== Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2, +//=== Rome - Italy. email: geo...@os... +//============================================================================== + +package org.fao.geonet.csw.common; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + + +/** + * OutputFormat in order of preference. + * + * TODO This should be made configurable by a system administrator. + * + */ +public class OutputFormatPreference { + + /** + * List of OutputSchema in order of preference. + */ + private static List<String> outputFormats = new ArrayList<String>(); + + /** + * Populate list of OutputFormats in order of preference. + */ + static { + outputFormats.add(Csw.OUTPUT_FORMAT_APPLICATION_XML); + + } + + public Iterator<String> iterator() { + return outputFormats.iterator(); + } + + +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |