diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-09 08:17:50 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-09 08:17:50 +0000 |
commit | 552092eea00b26ec67531604a512f2954147ae45 (patch) | |
tree | 3942ef5e24918907c3171051ed40b5eb70a110ff /sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache | |
parent | 00c0779491faa225792f7e981f397e27c253b72f (diff) |
Add an attribute to the REST binding for Cross-Origin Resource Sharing support. Just the minimal getter method for now to show how it can work
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1155251 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache')
2 files changed, 6 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java index dd01c37537..5917d1f63e 100644 --- a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java +++ b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java @@ -35,4 +35,6 @@ public interface RESTBinding extends Binding { QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.rest"); public List<HTTPHeader> getHttpHeaders(); + + public boolean isCORS(); } diff --git a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java index 93b59de5a4..132d7227e7 100644 --- a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java +++ b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java @@ -108,4 +108,8 @@ class RESTBindingImpl implements RESTBinding { public Object clone() throws CloneNotSupportedException { return super.clone(); } + + public boolean isCORS() { + return true; + } } |