summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-11-25 13:51:05 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-11-25 13:51:05 +0000
commitc98f20e80f4b26cee514ed280d33aedb4a084e6b (patch)
tree104e0d2e1364fb1662159c30c2d3888ad31c1a6c /sca-java-2.x
parentf1c1be59f2a31efd90a8e33524aa02fa23dd3d4b (diff)
Change to not inherrit getType from the http binding so that it returns the correct binding.jsonp type
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1039041 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x')
-rw-r--r--sca-java-2.x/trunk/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/JSONPBinding.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/JSONPBinding.java b/sca-java-2.x/trunk/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/JSONPBinding.java
index 45878f4f50..3b57ca199e 100644
--- a/sca-java-2.x/trunk/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/JSONPBinding.java
+++ b/sca-java-2.x/trunk/modules/binding-jsonp/src/main/java/org/apache/tuscany/sca/binding/jsonp/JSONPBinding.java
@@ -19,6 +19,8 @@
package org.apache.tuscany.sca.binding.jsonp;
+import javax.xml.namespace.QName;
+
import org.apache.tuscany.sca.binding.http.HTTPDefaultOperationSelector;
import org.apache.tuscany.sca.binding.http.HTTPDefaultWireFormat;
import org.apache.tuscany.sca.binding.http.impl.HTTPBindingImpl;
@@ -27,6 +29,9 @@ import org.apache.tuscany.sca.binding.http.impl.HTTPBindingImpl;
* JSONP Binding model
*/
public class JSONPBinding extends HTTPBindingImpl {
+
+ QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.jsonp");
+
public JSONPBinding() {
super();
@@ -35,4 +40,9 @@ public class JSONPBinding extends HTTPBindingImpl {
setRequestWireFormat(new HTTPDefaultWireFormat());
setResponseWireFormat(new HTTPDefaultWireFormat());
}
+
+ @Override
+ public QName getType() {
+ return TYPE;
+ }
}