Fixes related parsing

This commit is contained in:
Federico C. Guizzardi 2015-06-08 10:53:04 +02:00
parent 94c7871cd1
commit 9ebfaaafed

View File

@ -90,10 +90,23 @@ public class RESTWmsStore {
return cs.getChildText("name");
}
public String getType() {
return cs.getChildText("type");
}
public Boolean getEnabled() {
return Boolean.parseBoolean(cs.getChildText("enabled"));
}
public String getWorkspaceName() {
return cs.getChild("workspace").getChildText("name");
}
public Boolean getUseConnectionPooling(){
Element entry = cs.getChild("metadata").getChild("entry");
return entry.getAttributeValue("key").equals("useConnectionPooling") && Boolean.parseBoolean(entry.getValue());
}
public String getCapabilitiesURL() {
return cs.getChildText("capabilitiesURL");
}
@ -110,10 +123,6 @@ public class RESTWmsStore {
return cs.getChildText("connectTimeout");
}
public String getType() {
return cs.getChildText("type");
}
public String getUser() {
return cs.getChildText("user");
}