API change to better accommodate for the 1..* cardinality of HTTPType and addition of Constraint
This commit is contained in:
@@ -171,24 +171,24 @@ OpenLayers.Format.OWSCommon.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
this.readChildNodes(node, dcp.http);
|
||||
},
|
||||
"Get": function(node, http) {
|
||||
http.get = this.getAttributeNS(node,
|
||||
this.namespaces.xlink, "href");
|
||||
if (!http.constraints) {
|
||||
http.constraints = {};
|
||||
if (!http.get) {
|
||||
http.get = [];
|
||||
}
|
||||
var obj = {};
|
||||
var obj = {
|
||||
url: this.getAttributeNS(node, this.namespaces.xlink, "href")
|
||||
};
|
||||
this.readChildNodes(node, obj);
|
||||
http.constraints.get = obj.constraints;
|
||||
http.get.push(obj);
|
||||
},
|
||||
"Post": function(node, http) {
|
||||
http.post = this.getAttributeNS(node,
|
||||
this.namespaces.xlink, "href");
|
||||
if (!http.constraints) {
|
||||
http.constraints = {};
|
||||
if (!http.post) {
|
||||
http.post = [];
|
||||
}
|
||||
var obj = {};
|
||||
var obj = {
|
||||
url: this.getAttributeNS(node, this.namespaces.xlink, "href")
|
||||
};
|
||||
this.readChildNodes(node, obj);
|
||||
http.constraints.post = obj.constraints;
|
||||
http.post.push(obj);
|
||||
},
|
||||
"Parameter": function(node, operation) {
|
||||
if (!operation.parameters) {
|
||||
|
||||
Reference in New Issue
Block a user