abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r541854 - in /incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext: gdata/GoogleLoginAuthScheme.java wsse/WSSEAuthScheme.java
Date Sat, 26 May 2007 03:22:46 GMT
Author: jmsnell
Date: Fri May 25 20:22:45 2007
New Revision: 541854

URL: http://svn.apache.org/viewvc?view=rev&rev=541854
Log:
Update for the new version of httpclient

Modified:
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/gdata/GoogleLoginAuthScheme.java
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/gdata/GoogleLoginAuthScheme.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/gdata/GoogleLoginAuthScheme.java?view=diff&rev=541854&r1=541853&r2=541854
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/gdata/GoogleLoginAuthScheme.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/gdata/GoogleLoginAuthScheme.java
Fri May 25 20:22:45 2007
@@ -73,7 +73,6 @@
     service = getParameter("service");
   }
   
-  @Override
   public String authenticate(
     Credentials credentials, 
     HttpMethod method) 
@@ -99,7 +98,6 @@
     return buf.toString();
   }
   
-  @Override
   public String authenticate(
     Credentials credentials, 
     String method, 
@@ -108,17 +106,14 @@
     return authenticate(credentials, null);
   }
   
-  @Override
   public String getSchemeName() {
     return "GoogleLogin";
   }
   
-  @Override
   public boolean isComplete() {
     return true;
   }
   
-  @Override
   public boolean isConnectionBased() {
     return false;
   }
@@ -138,7 +133,8 @@
         URLEncoder.encode(pwd, "utf-8"),
         (service != null) ? URLEncoder.encode(service, "utf-8") : "",
         URLEncoder.encode(Version.APP_NAME, "utf-8"));
-      StringRequestEntity stringreq = new StringRequestEntity(f.toString());
+      StringRequestEntity stringreq = new StringRequestEntity(
+        f.toString(),"application/x-www-form-urlencoded","utf-8");
       String uri = "https://www.google.com/accounts/ClientLogin";
       RequestOptions options = client.getDefaultRequestOptions();
       options.setContentType("application/x-www-form-urlencoded");

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java?view=diff&rev=541854&r1=541853&r2=541854
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java
Fri May 25 20:22:45 2007
@@ -53,7 +53,6 @@
       ((CommonsClient)client).setAuthenticationSchemeDefaults();
   }
   
-  @Override
   public String authenticate(
     Credentials credentials, 
     HttpMethod method) 
@@ -103,7 +102,6 @@
       }
   }
 
-  @Override
   public String authenticate(
     Credentials credentials, 
     String method, 
@@ -112,17 +110,14 @@
     return authenticate(credentials, null);
   }
 
-  @Override
   public String getSchemeName() {
     return "WSSE";
   }
 
-  @Override
   public boolean isComplete() {
     return true;
   }
 
-  @Override
   public boolean isConnectionBased() {
     return false;
   } 



Mime
View raw message