Revision 6981

View differences:

trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/gui/listeners/OptionsServerWindowListener.java
56 56
 *
57 57
 * $Id$
58 58
 * $Log$
59
 * Revision 1.2  2006-09-03 14:31:00  jorpiell
59
 * Revision 1.3  2006-09-03 14:34:03  jorpiell
60
 * Se ha cambiado el nombre del servidor a SERVER_BRAND
61
 *
62
 * Revision 1.2  2006/09/03 14:31:00  jorpiell
60 63
 * Ahora se cargan todos los datos desde el fichero de configuraci?n. Se han a?adido algunos comentarios
61 64
 *
62 65
 * Revision 1.1  2006/09/01 13:40:59  jorpiell
......
132 135
	 * Server brand
133 136
	 */
134 137
	private void writeConfigurationFile(ServerData serverData,String brand,String type){
135
		if (brand.compareTo(Servers.SERVER_NAME_MAPSERVER) == 0){
138
		if (brand.compareTo(Servers.SERVER_BRAND_MAPSERVER) == 0){
136 139
			if (type.compareTo(Servers.SERVER_TYPE_WMS) == 0){
137 140
				System.out.println("Mapserver WMS");
138 141
			}else if (type.compareTo(Servers.SERVER_TYPE_WFS) == 0){
139 142
				System.out.println("Mapserver WFS");
140 143
			}
141
		}else if (brand.compareTo(Servers.SERVER_NAME_GEOSERVER) == 0){
144
		}else if (brand.compareTo(Servers.SERVER_BRAND_GEOSERVER) == 0){
142 145
			System.out.println("Geoserver WMS");
143 146
		}
144 147
	}
trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/Servers.java
52 52
 *
53 53
 * $Id$
54 54
 * $Log$
55
 * Revision 1.3  2006-09-03 14:31:00  jorpiell
55
 * Revision 1.4  2006-09-03 14:34:03  jorpiell
56
 * Se ha cambiado el nombre del servidor a SERVER_BRAND
57
 *
58
 * Revision 1.3  2006/09/03 14:31:00  jorpiell
56 59
 * Ahora se cargan todos los datos desde el fichero de configuraci?n. Se han a?adido algunos comentarios
57 60
 *
58 61
 * Revision 1.2  2006/09/01 13:40:59  jorpiell
......
67 70
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
68 71
 */
69 72
public class Servers {
70
	public static final String SERVER_NAME_MAPSERVER = "Mapserver";
71
	public static final String SERVER_NAME_GEOSERVER = "Geoserver";
73
	public static final String SERVER_BRAND_MAPSERVER = "Mapserver";
74
	public static final String SERVER_BRAND_GEOSERVER = "Geoserver";
72 75
	
73 76
	public static final String SERVER_TYPE_WFS = "WFS";
74 77
	public static final String SERVER_TYPE_WMS = "WMS";
75 78
	
76 79
	public Servers(){
77
		addGenericServer(SERVER_NAME_MAPSERVER,new MapServer());
78
		addGenericServer(SERVER_NAME_GEOSERVER,new Geoserver());
80
		addGenericServer(SERVER_BRAND_MAPSERVER,new MapServer());
81
		addGenericServer(SERVER_BRAND_GEOSERVER,new Geoserver());
79 82
	}
80 83
	
81 84
	private TreeMap genericServers = new TreeMap();

Also available in: Unified diff