import java.awt.BasicStroke; import java.awt.Color; import java.util.ArrayList; import org.gvsig.remoteservices.conf.mapserver.MapServerConfiguration; import org.gvsig.remoteservices.conf.mapserver.MapServerConfiguration.ConfigFile; import org.gvsig.remoteservices.conf.mapserver.MapServerConfiguration.MapClass; import org.gvsig.remoteservices.conf.mapserver.MapServerConfiguration.MapLayer; import org.gvsig.remoteservices.conf.mapserver.MapServerConfiguration.MetadataLayer; import org.gvsig.remoteservices.conf.mapserver.MapServerConfiguration.PostgisLayer; import com.iver.andami.PluginServices; import com.iver.andami.ui.mdiManager.IWindow; import com.iver.cit.gvsig.fmap.MapControl; import com.iver.cit.gvsig.fmap.core.v02.FSymbol; import com.iver.cit.gvsig.fmap.drivers.raster.CmsRasterDriver; import com.iver.cit.gvsig.fmap.drivers.shp.IndexedShpDriver; import com.iver.cit.gvsig.fmap.layers.FLayer; import com.iver.cit.gvsig.fmap.layers.FLayerFileVectorial; import com.iver.cit.gvsig.fmap.layers.FLayerGenericVectorial; import com.iver.cit.gvsig.fmap.layers.FLayerVectorialDB; import com.iver.cit.gvsig.fmap.layers.FLayers; import com.iver.cit.gvsig.fmap.layers.FLyrRaster; import com.iver.cit.gvsig.fmap.layers.FLyrVect; import com.iver.cit.gvsig.fmap.layers.ISpatialDB; import com.iver.cit.gvsig.fmap.rendering.ILegend; import com.iver.cit.gvsig.fmap.rendering.SingleSymbolLegend; import com.iver.cit.gvsig.fmap.rendering.VectorialIntervalLegend; import com.iver.cit.gvsig.fmap.rendering.VectorialUniqueValueLegend; import com.iver.cit.gvsig.project.documents.view.gui.View; import com.iver.cit.gvsig.publish.Servers; import com.iver.cit.gvsig.publish.layers.LayerLoader; import com.iver.cit.gvsig.publish.model.ServiceInfo; import com.iver.cit.gvsig.publish.servers.geoserver.GeoserverPublishControler; import com.iver.cit.gvsig.publish.servers.mapserver.MapServerPublishControler; import com.iver.utiles.swing.jcomboServer.ServerData; /* gvSIG. Sistema de Información Geográfica de la Generalitat Valenciana * * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. * * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. * * For more information, contact: * * Generalitat Valenciana * Conselleria d'Infraestructures i Transport * Av. Blasco Ibáñez, 50 * 46010 VALENCIA * SPAIN * * +34 963862235 * gvsig@gva.es * www.gvsig.gva.es * * or * * IVER T.I. S.A * Salamanca 50 * 46005 Valencia * Spain * * +34 963163400 * dac@iver.es */ /* CVS MESSAGES: * * $Id$ * $Log$ * Revision 1.4 2007-06-07 07:30:19 caballero * connections * * Revision 1.3 2007/03/06 16:50:30 caballero * Exceptions * * Revision 1.2 2006/11/22 15:57:03 jorpiell * Se ha ajustado el interfaz de usuario * * Revision 1.1 2006/11/22 12:17:11 jvhigon * ejemplo de setproperties * * Revision 1.8 2006/11/22 09:51:01 jvhigon * reafactoring del ServiceInfo en marcha ... * * Revision 1.7 2006/11/20 14:17:47 dagilgon * *** empty log message *** * * Revision 1.6 2006/11/17 09:17:18 jorpiell * Cambios motivados por el cambio de RC2 a RC3 en el branch * * Revision 1.5 2006/10/05 12:13:43 jorpiell * Añadida una factoría en la clase publishControler * * Revision 1.4 2006/10/03 10:30:14 dagilgon * adaptation to branch v10 * * Revision 1.3 2006/09/28 15:04:02 fjp * Usar siempre que se pueda ISymbol en lugar de FSymbol * * Revision 1.2 2006/09/08 15:39:49 jorpiell * Añadida la capacidad de publicar con WFS * * Revision 1.1 2006/09/08 08:58:53 jorpiell * Se han renombrado y modificado algunas clases * * */ /** * @author Jorge Piera Llodrá (piera_jor@gva.es) */ public abstract class PublishControlerPruebas { /* private View view = null; private MapControl mapCtrl = null; private FLayers layers = null; private String service = null; protected ServiceInfo serviceInfo = null; */ /** * Returs a publish controler * @param brand * @param type * @return */ /* public static PublishControler getPublishControler(String brand,String type){ if (brand.compareTo(Servers.SERVER_BRAND_MAPSERVER) == 0){ return new MapServerPublishControler(type); } else if (brand.compareTo(Servers.SERVER_BRAND_GEOSERVER) == 0){ return new GeoserverPublishControler(type); } return null; } */ /** * Constructor * * public PublishControler(String service) { IWindow[] windows = PluginServices.getMDIManager().getAllWindows(); for (int i=0 ; i