Package org.vfny.geoserver.wfs

Examples of org.vfny.geoserver.wfs.FeatureResponseDelegateProducerSpi


            //     in the config and people could check off the extras they want
            //     to allow.
           
           //  element("GML2", null); // old implementation
           
            FeatureResponseDelegateProducerSpi spi;

          //DJB: (see above comment, this fixes it0
          //      WFS config now has a "citeConformanceHacks" boolean in it.
          //      true --> only publish GML2 in caps file
          //      false -> publish all
            WFS config = request.getWFS();
            boolean onlyGML2 = config.getCiteConformanceHacks();
           
            if (onlyGML2)
            {
              element("GML2",null);
            }
            else
          {
              //FULL MONTY
              Iterator spi_it = FactoryFinder.factories(FeatureResponseDelegateProducerSpi.class);
              while (spi_it.hasNext())
              {
                  spi = (FeatureResponseDelegateProducerSpi) spi_it.next();
                  Set formats = spi.getSupportedFormats();
                  Iterator it =formats.iterator();
                  while (it.hasNext())
                  {
                    String format = (String) it.next();
                    element( format, null);
View Full Code Here


     * @return
     */
    public static FeatureResponseDelegate getDelegate(String outputFormat)
               throws NoSuchElementException
  {
      FeatureResponseDelegateProducerSpi spi;
         Iterator spi_it = FactoryFinder.factories(FeatureResponseDelegateProducerSpi.class);

         while (spi_it.hasNext())
         {
             spi = (FeatureResponseDelegateProducerSpi) spi_it.next();
             if (spi.canProduce(outputFormat))
             {
               return spi.createFeatureDelegateProducer(outputFormat);
             }                
         }
         throw new NoSuchElementException();
  }
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.wfs.FeatureResponseDelegateProducerSpi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.