Revision 6282
trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/wizards/WFSWizardData.java | ||
---|---|---|
55 | 55 |
* |
56 | 56 |
* $Id$ |
57 | 57 |
* $Log$ |
58 |
* Revision 1.6 2006-06-14 08:46:24 jorpiell |
|
58 |
* Revision 1.7 2006-07-11 07:26:43 caballero |
|
59 |
* traducci?n cant_connect_wfs |
|
60 |
* |
|
61 |
* Revision 1.6 2006/06/14 08:46:24 jorpiell |
|
59 | 62 |
* Se tiene en cuanta la opcion para refrescar las capabilities |
60 | 63 |
* |
61 | 64 |
* Revision 1.5 2006/05/23 13:21:59 jorpiell |
... | ... | |
86 | 89 |
private int buffer = 0; |
87 | 90 |
private int timeOut = 0; |
88 | 91 |
private String UserName = null; |
89 |
|
|
92 |
|
|
90 | 93 |
public String getOnlineResource(){ |
91 | 94 |
return driver.getOnlineResource(); |
92 | 95 |
} |
93 |
|
|
96 |
|
|
94 | 97 |
/** |
95 |
*
|
|
98 |
* |
|
96 | 99 |
* @return The host name |
97 | 100 |
*/ |
98 | 101 |
public String getHost(){ |
99 | 102 |
return driver.getHost(); |
100 | 103 |
} |
101 |
|
|
104 |
|
|
102 | 105 |
/** |
103 | 106 |
* Create the WFSClient and try to connect |
104 | 107 |
* @param host |
... | ... | |
109 | 112 |
driver = new FMapWFSDriver(); |
110 | 113 |
try { |
111 | 114 |
driver.createClient(host); |
112 |
|
|
115 |
|
|
113 | 116 |
if (!driver.connect(override,null)){ |
114 |
throw new DriverException(PluginServices.getText(this, "cant_connect") + host.toString()); |
|
115 |
}
|
|
116 |
|
|
117 |
throw new DriverException(PluginServices.getText(this, "cant_connect_wfs") + host.toString());
|
|
118 |
} |
|
119 |
|
|
117 | 120 |
} catch (ConnectException e) { |
118 | 121 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), PluginServices.getText(this,"server_timeout")); |
119 | 122 |
e.printStackTrace(); |
... | ... | |
122 | 125 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), PluginServices.getText(this, "cant_connect")); |
123 | 126 |
e.printStackTrace(); |
124 | 127 |
return; |
125 |
}
|
|
128 |
} |
|
126 | 129 |
} |
127 |
|
|
130 |
|
|
128 | 131 |
/** |
129 | 132 |
* Server's title (not used in gvSIG) |
130 |
*
|
|
131 |
* T?tulo del servidor (no se usa en gvSIG)
|
|
132 |
*
|
|
133 |
* |
|
134 |
* T?tulo del servidor (no se usa en gvSIG) |
|
135 |
* |
|
133 | 136 |
* @return |
134 | 137 |
*/ |
135 | 138 |
public String getTitle() { |
... | ... | |
139 | 142 |
} |
140 | 143 |
return title; |
141 | 144 |
} |
142 |
|
|
145 |
|
|
143 | 146 |
/** |
144 | 147 |
* The server description. |
145 |
*
|
|
148 |
* |
|
146 | 149 |
* La descripci?n del servidor |
147 |
*
|
|
150 |
* |
|
148 | 151 |
* @return String |
149 | 152 |
*/ |
150 | 153 |
public String getAbstract() { |
... | ... | |
154 | 157 |
} |
155 | 158 |
return _abstract; |
156 | 159 |
} |
157 |
|
|
160 |
|
|
158 | 161 |
/** |
159 | 162 |
* @return Returns the driver. |
160 | 163 |
*/ |
161 | 164 |
public FMapWFSDriver getDriver() { |
162 | 165 |
return driver; |
163 | 166 |
} |
164 |
|
|
167 |
|
|
165 | 168 |
/** |
166 |
*
|
|
169 |
* |
|
167 | 170 |
* @return Features vector |
168 | 171 |
*/ |
169 | 172 |
public Object[] getFeatures(){ |
170 | 173 |
return driver.getLayerList(); |
171 | 174 |
} |
172 |
|
|
175 |
|
|
173 | 176 |
/** |
174 | 177 |
* Return the feature info |
175 | 178 |
* @param featureName |
... | ... | |
178 | 181 |
public Object getFeatureInfo(String featureName){ |
179 | 182 |
return driver.getLayerInfo(featureName); |
180 | 183 |
} |
181 |
|
|
184 |
|
|
182 | 185 |
/** |
183 |
*
|
|
186 |
* |
|
184 | 187 |
* @return server type |
185 | 188 |
*/ |
186 | 189 |
public String getServerType() { |
... | ... | |
232 | 235 |
public void setUserName(String userName) { |
233 | 236 |
UserName = userName; |
234 | 237 |
} |
235 |
|
|
236 |
|
|
237 |
|
|
238 |
|
|
239 |
|
|
240 |
|
|
238 | 241 |
} |
Also available in: Unified diff