surjit / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

Apache HttpClient 4 and Android 1.0 #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install Google Android SDK 1.0 R1
2. install oauth-1.3.jar

I want to use the oauth-1.3 jar within my Android application. As far as I
can tell, oauth-1.3 is dependent upon Apache HttpClient 3.1

Unfortunately for me, the Android platform uses the Apache HttpClient 4 API.

Is the OAuth 1.3 Java library compatible with Apache HttpClient 4.x ?  

Note:  the HttpClient 4 API is not compatible with the HttpClient 3.x API

Original issue reported on code.google.com by sean%sea...@gtempaccount.com on 12 Oct 2008 at 5:57

GoogleCodeExporter commented 9 years ago

I created a new package that allows the use of OAuth with Apache HttpClient 4.0

Package name:   net.oauth.client.httpclient4

The package contains three classes:  HttpClientPool, HttpMethodResponse, 
OAuthHttpClient

I am attaching the 3 source files.    

I'm not a committer on the OAuth project so I can't make any changes to SVN.    
Are
the OAuth committers interested in adding this code to the OAuth library?

Original comment by sean%sea...@gtempaccount.com on 12 Oct 2008 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago

I'm using OAuth with HttpClient 4 in the jfireeagle project:

   http://code.google.com/p/jfireeagle/

My latest OAuth classes are in SVN:

http://code.google.com/p/jfireeagle/source/browse/#svn/trunk/jfireeagle/src/main
/jfireeagle/oauth/httpclient4

These classes would be more useful if they were included in the OAuth Java 
library.
Are the OAuth committers interested in adding this code to the OAuth library?

Original comment by sean%sea...@gtempaccount.com on 21 Oct 2008 at 11:30

GoogleCodeExporter commented 9 years ago
Thanks for the code.  I'll integrate it into 
http://oauth.googlecode.com/svn/code/java

Original comment by jmkrist...@gmail.com on 22 Oct 2008 at 4:00

GoogleCodeExporter commented 9 years ago

Original comment by jmkrist...@gmail.com on 22 Oct 2008 at 4:01

GoogleCodeExporter commented 9 years ago
I got a copy of Sean's latest code from 
http://code.google.com/p/jfireeagle/source/browse/#svn/trunk/jfireeagle/src/main
/jfir
eeagle/oauth/httpclient4

Original comment by jmkrist...@gmail.com on 22 Oct 2008 at 4:44

GoogleCodeExporter commented 9 years ago
I added an Apache license, made some other cosmetic changes and committed -r687.

Original comment by jmkrist...@gmail.com on 22 Oct 2008 at 6:17

GoogleCodeExporter commented 9 years ago
Thanks John! I just pulled the latest code from OAuth SVN.   The code is working
great in my Android application. I am using the OAuth Java library to connect to
Yahoo Fire Eagle.

Original comment by sean%sea...@gtempaccount.com on 25 Oct 2008 at 11:25