tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1155251 - in /tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest: RESTBinding.java impl/RESTBindingImpl.java
Date Tue, 09 Aug 2011 08:17:51 GMT
Author: antelder
Date: Tue Aug  9 08:17:50 2011
New Revision: 1155251

URL: http://svn.apache.org/viewvc?rev=1155251&view=rev
Log:
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

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java
    tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java?rev=1155251&r1=1155250&r2=1155251&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/RESTBinding.java
Tue Aug  9 08:17:50 2011
@@ -35,4 +35,6 @@ public interface RESTBinding extends Bin
     QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.rest");
     
     public List<HTTPHeader> getHttpHeaders();
+
+    public boolean isCORS();
 }

Modified: tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java?rev=1155251&r1=1155250&r2=1155251&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/impl/RESTBindingImpl.java
Tue Aug  9 08:17:50 2011
@@ -108,4 +108,8 @@ class RESTBindingImpl implements RESTBin
     public Object clone() throws CloneNotSupportedException {
         return super.clone();
     }
+
+    public boolean isCORS() {
+        return true;
+    }
 }



Mime
View raw message