Revision 32544
branches/v2_0_0_prep/extensions/org.gvsig.arcims.feature.extension/src/main/java/org/gvsig/fmap/dal/serverexplorer/arcims/ArcImsServerExplorer.java | ||
---|---|---|
47 | 47 |
import org.gvsig.remoteclient.arcims.ArcImsStatus; |
48 | 48 |
import org.gvsig.remoteclient.arcims.ArcImsVectStatus; |
49 | 49 |
import org.gvsig.remoteclient.arcims.exceptions.ArcImsException; |
50 |
import org.gvsig.remoteclient.arcims.utils.ServiceInfoTags; |
|
51 | 50 |
import org.gvsig.remoteclient.arcims.utils.ServiceInformation; |
52 | 51 |
import org.gvsig.tools.dispose.impl.AbstractDisposable; |
53 | 52 |
import org.gvsig.tools.exception.BaseException; |
... | ... | |
76 | 75 |
public ArcImsServerExplorer(ArcImsServerExplorerParameters parameters, |
77 | 76 |
DataServerExplorerProviderServices services) |
78 | 77 |
throws InitializeException { |
79 |
|
|
78 |
|
|
80 | 79 |
super(); |
81 | 80 |
this.parameters = parameters; |
82 | 81 |
|
83 |
if (arcimsClient == null) {
|
|
82 |
if (arcimsClient == null) { |
|
84 | 83 |
try { |
85 | 84 |
// ArcIms Client |
86 |
arcimsClient = new ArcImsFeatureClient(this.parameters.getUrl(),"",
|
|
87 |
ServiceInfoTags.vFEATURESERVICE);
|
|
85 |
arcimsClient = new ArcImsFeatureClient( |
|
86 |
this.parameters.getUrl(), "");
|
|
88 | 87 |
if (arcimsStatus == null) { |
89 | 88 |
// ArcIms Status |
90 | 89 |
arcimsStatus = new ArcImsVectStatus(); |
91 |
this.arcimsStatus.setServerURL(this.parameters.getUrl());
|
|
92 |
}
|
|
90 |
this.arcimsStatus.setServerURL(this.parameters.getUrl()); |
|
91 |
} |
|
93 | 92 |
} catch (Exception e) { |
94 | 93 |
throw new InitializeException("Not possible to connect with " |
95 | 94 |
+ this.parameters.getUrl(), e); |
... | ... | |
161 | 160 |
* List of the layers availables from service |
162 | 161 |
*/ |
163 | 162 |
public List<String> list() throws DataException { |
164 |
|
|
163 |
|
|
165 | 164 |
List<String> layers = new ArrayList<String>(); |
166 |
|
|
165 |
|
|
167 | 166 |
try { |
168 | 167 |
this.arcimsClient.getCapabilities(this.getStatus()); |
169 |
ServiceInformation si = this.arcimsClient.getHandler().getServiceInformation(); |
|
168 |
ServiceInformation si = this.arcimsClient.getHandler() |
|
169 |
.getServiceInformation(); |
|
170 | 170 |
this.getStatus().setServiceInformation(si); |
171 | 171 |
} catch (ArcImsException e) { |
172 |
logger.error("Error getting layers from service",e); |
|
172 |
logger.error("Error getting layers from service", e);
|
|
173 | 173 |
} |
174 |
|
|
174 |
|
|
175 | 175 |
return layers; |
176 | 176 |
} |
177 |
|
|
177 |
|
|
178 | 178 |
/** |
179 | 179 |
* List of the services availables from server |
180 | 180 |
*/ |
... | ... | |
213 | 213 |
// nothing to do |
214 | 214 |
|
215 | 215 |
} |
216 |
|
|
216 |
|
|
217 | 217 |
/** |
218 | 218 |
* get ArcImsClient |
219 | 219 |
* |
... | ... | |
222 | 222 |
public ArcImsClient getClient() { |
223 | 223 |
return this.arcimsClient; |
224 | 224 |
} |
225 |
|
|
226 | 225 |
|
227 |
|
|
228 | 226 |
/** |
229 | 227 |
* get ArcImsStatus |
230 | 228 |
* |
Also available in: Unified diff