RESTLayer: provide workspace info in default style. Close #100.
This commit is contained in:
parent
2b69e1dcb3
commit
3c502c5f58
@ -114,6 +114,11 @@ public class RESTLayer {
|
|||||||
return defaultStyle == null? null : defaultStyle.getChildText("name");
|
return defaultStyle == null? null : defaultStyle.getChildText("name");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDefaultStyleWorkspace() {
|
||||||
|
Element defaultStyle = layerElem.getChild("defaultStyle");
|
||||||
|
return defaultStyle == null? null : defaultStyle.getChildText("workspace");
|
||||||
|
}
|
||||||
|
|
||||||
public String getTitle() {
|
public String getTitle() {
|
||||||
Element resource = layerElem.getChild("resource");
|
Element resource = layerElem.getChild("resource");
|
||||||
return resource.getChildText("title");
|
return resource.getChildText("title");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user