camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krass...@apache.org
Subject svn commit: r930897 - in /camel/trunk/components/camel-gae: pom.xml src/main/java/org/apache/camel/component/gae/auth/GAuthAuthorizeBinding.java src/main/java/org/apache/camel/component/gae/auth/GAuthUpgradeBinding.java
Date Mon, 05 Apr 2010 16:25:09 GMT
Author: krasserm
Date: Mon Apr  5 16:25:08 2010
New Revision: 930897

URL: http://svn.apache.org/viewvc?rev=930897&view=rev
Log:
propagate message headers in gauth endpoints, use latest gdata version.

Modified:
    camel/trunk/components/camel-gae/pom.xml
    camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthAuthorizeBinding.java
    camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthUpgradeBinding.java

Modified: camel/trunk/components/camel-gae/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-gae/pom.xml?rev=930897&r1=930896&r2=930897&view=diff
==============================================================================
--- camel/trunk/components/camel-gae/pom.xml (original)
+++ camel/trunk/components/camel-gae/pom.xml Mon Apr  5 16:25:08 2010
@@ -33,7 +33,7 @@
   <properties>
 	<camel.osgi.export.pkg>org.apache.camel.component.gae.*</camel.osgi.export.pkg>
     <appengine-sdk-version>1.3.2</appengine-sdk-version>
-    <gdata-version>1.40.2</gdata-version>
+    <gdata-version>1.41.1</gdata-version>
   </properties>
 
   <dependencies>

Modified: camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthAuthorizeBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthAuthorizeBinding.java?rev=930897&r1=930896&r2=930897&view=diff
==============================================================================
--- camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthAuthorizeBinding.java
(original)
+++ camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthAuthorizeBinding.java
Mon Apr  5 16:25:08 2010
@@ -82,6 +82,7 @@ public class GAuthAuthorizeBinding imple
      */
     public Exchange readResponse(GAuthEndpoint endpoint, Exchange exchange, GoogleOAuthParameters
response) throws Exception {
         String authrUrl = endpoint.newOAuthHelper().createUserAuthorizationUrl(response);
+        exchange.getOut().setHeaders(exchange.getIn().getHeaders());
         exchange.getOut().setHeader(Exchange.HTTP_RESPONSE_CODE, 302);
         exchange.getOut().setHeader("Location", authrUrl);
 

Modified: camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthUpgradeBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthUpgradeBinding.java?rev=930897&r1=930896&r2=930897&view=diff
==============================================================================
--- camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthUpgradeBinding.java
(original)
+++ camel/trunk/components/camel-gae/src/main/java/org/apache/camel/component/gae/auth/GAuthUpgradeBinding.java
Mon Apr  5 16:25:08 2010
@@ -89,6 +89,7 @@ public class GAuthUpgradeBinding impleme
      * @see #GAUTH_ACCESS_TOKEN_SECRET
      */
     public Exchange readResponse(GAuthEndpoint endpoint, Exchange exchange, GoogleOAuthParameters
response) throws IOException {
+        exchange.getOut().setHeaders(exchange.getIn().getHeaders());
         exchange.getOut().setHeader(GAUTH_ACCESS_TOKEN, response.getOAuthToken());
         exchange.getOut().setHeader(GAUTH_ACCESS_TOKEN_SECRET, response.getOAuthTokenSecret());
         return exchange;



Mime
View raw message