Fixes related parsing
This commit is contained in:
parent
94c7871cd1
commit
9ebfaaafed
@ -90,10 +90,23 @@ public class RESTWmsStore {
|
||||
return cs.getChildText("name");
|
||||
}
|
||||
|
||||
public String getWorkspaceName() {
|
||||
return cs.getChild("workspace").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");
|
||||
}
|
||||
@ -108,11 +121,7 @@ public class RESTWmsStore {
|
||||
|
||||
public String getConnectTimeout() {
|
||||
return cs.getChildText("connectTimeout");
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return cs.getChildText("type");
|
||||
}
|
||||
}
|
||||
|
||||
public String getUser() {
|
||||
return cs.getChildText("user");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user