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